用jsp 在tomcat5上访问oracle10g?
我的XML文件内容
<ResourceParams name= "jdbc/tipmis_ods ">
<parameter>
<name> validationQuery </name>
<value> select * from t_salequantity </value>
</parameter>
<parameter>
<name> password </name>
<value> trade_view </value>
</parameter>
<parameter>
<name> url </name>
<value> jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.232.1.203)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ods))) </value>
</parameter>
<parameter>
<name> maxActive </name>
<value> 4 </value>
</parameter>
<parameter>
<name> maxWait </name>
<value> 5000 </value>
</parameter>
<parameter>
<name> driverClassName </name>
<value> oracle.jdbc.driver.OracleDriver </value>
</parameter>
<parameter>
<name> username </name>
<value> usr_trade </value>
</parameter>
<parameter>
<name> maxIdle </name>
<value> 2 </value>
</parameter>
</ResourceParams>
JSP这么写的
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN "
"http://www.w3.org/TR/html4/loose.dtd ">
<%@ page contentType= "text/html; charset=gb2312 " %>
<%@ page import= "tipmis.module.GFunction.DivElementBO "%>
<%@ page import= "java.util.Date "%>
<%@ page import= "com.sict.util.DateTime "%>
<%@ page import= "javax.naming.InitialContext "%>
<%@ page import= "javax.naming.Context "%>
<%@ page import= "javax.sql.DataSource "%>
<%@ page import= "java.sql.Connection "%>
<%
Context ctx = new InitialContext();
String strLookup =