JSP开发具体有什么流程看你的网站需不需要数据库,如果需要先要设计数据库
然后再考虑页面,以及要实现什么功能。至于你说如何调用存储过程
sql语句:"{call 过程名}"

解决方案 »

  1.   

    Class.forName(driver).newInstance();
    Connection conn=DriverManager.getConnection(url,name,pwd);
    CallableStatement cstmt=conn.prepareCall("{call package_page.proc_page(?,?,?)}");
    cstmt.setInt(1, 2);
    cstmt.setInt(2, 20);
    cstmt.registerOutParameter(3, oracle.jdbc.driver.OracleTypes.CURSOR);//注册返回类型
    cstmt.setFetchSize(100);//设置最大返回的行数
    cstmt.execute();
    ResultSet rs=(ResultSet)cstmt.getObject(3);
    while(rs.next())
    {
    System.out.println(rs.getInt("tab_id"));
    }
    rs.close();
    cstmt.close();
    conn.close();
      

  2.   

    存储过程调用方法:CallableStatement call = con.prepareCall("exec L2U ?,0,? ");
    call.setDouble(1, doub);
    call.registerOutParameter(2,java.sql.Types.VARCHAR);
     call.execute();问号是参数,赋值就用set..,具体看是什么类型,,