我在websphere5.0的环境下配置数据池,可是在打印出错误的地方显示:
com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource我的源代码为:
<%@ page contentType="text/html; charset=GBK" %>
<html>
<head>
<title>
index
</title>
</head>
<body bgcolor="#ffffff">
<%
java.sql.Connection con = null;
java.sql.Statement stmt = null;
java.sql.ResultSet rs = null;
try{
javax.naming.Context initContext = new javax.naming.InitialContext();
javax.naming.Context envContext  = (javax.naming.Context)initContext.lookup("jdbc/hygj");
javax.sql.DataSource ds = (javax.sql.DataSource)envContext.lookup("hygj");
con = ds.getConnection();
stmt = con.createStatement();
rs = stmt.executeQuery("select * from test");
while(rs.next()){
%>
<%= rs.getString("id")%><br/>
<%= rs.getString("name")%><br/>
<%
}
rs.close();
stmt.close();
con.close();
}catch(Exception e){
out.println(e.getMessage());
}
%>
</body>
</html>各位大虾,怎么办呢?解决立刻给分!!谢谢!!!!!!!!!!