<%@ page contentType=”text/html;charset=gbk” %>
<%@ page import=”java.sql.Connection” %>
<%@ page import=”java.sql.DriverManager” %>
<%@ page import=”java.sql.Statement” %>
<%@ page import=”java.sql.ResultSet” %>
<%@ page import=”java.io.Writer” %>
<%
//数据包准备
try {
Class.forName(“oracle.jdbc.driver.OracleDriver”);
}
catch (java.lang.ClassNotFoundException e) {
System.err.print(e);
}
//参数定义
String url = “jdbc:oracle:thin:@192.168.9.96:1521:picc”;
String user = “eccc”;
String password = “eccc”;
String action = request.getParameter(“action”);
int req;//SQL执行判断参数
if (action == null) {
out.println(“<script language=/”javascript/”>alert(/”非法链接…/”);</script>”);
out.println(” <script language=’javascript’>”);
out.println(“location=’./addnew.jsp’; </script>”);
}
if (action.equals(“0211”)) {//判断是否合法请求
String info_id = request.getParameter(“info_id”);
String info_title &