/*執行一條insert語句並傳參數*/
create or replace procedure p_test
begin
insert into t values (i
commit;
end;
<%@ page language=”java” contentType=”text/html;charset=gb
<%@page import=”java
<html>
<body>
<table>
<tr><td>aaa</td><td>bbb</td></tr>
<%
String driver = “oracle
String strUrl = “jdbc:oracle:thin:@
Class
Connection conn = DriverManager
String procedure = “{call p_test
CallableStatement cstmt = conn
cstmt
cstmt
Statement stmt = conn
ResultSet rs = stmt
while(rs
{
out
}
rs
stmt
conn
%>
</table>
<p>
<%
out
%>
</body>
</html>
</body>
</html>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20020.html