可以看一下Connection  的prepareCall相关 的api
不过不推荐在页面里这样做
Class.forName(driver);
    Connection conn = DriverManager.getConnection(strUrl, "scott", "tiger");    String procedure = "{call p_test2 (?) }";
    CallableStatement cstmt = conn.prepareCall(procedure);
    cstmt.setInt(1,33);
    cstmt.executeUpdate();    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("select * from t");