请教一个jsp+weblogic的问题
小弟有个程序,开发环境是weblogic ,数据库用的sql server2000.本来运行一直正常,但是最近我更改了一下数据库密码,然后我修改了一个文件,现在无论如何编译都不通过。现将代码发到下面,请各位大虾帮忙指正。
<%@ page language="java" import="java.util.*,java.sql.*" pageEncoding="utf-8"%>
<%
String printJgdm = request.getParameter("printjgdm");
String ptzt = request.getParameter("ptzt");
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=data";
String user="user";
String password="password";
Connection conn= DriverManager.getConnection(url,user,password);
%>
<script type="text/javascript">
document.body.style.zoom=1-0.2;
</script>
现在的错误提示是
Compilation of 'C:\bea\user_projects\domains\mydomain\.\webcode\.wlnotdelete\extract\webcode_DefaultWebApp_DefaultWebApp\jsp_servlet\_jsp\_pub\__printsbb.java' failed:
--------------------------------------------------------------------------------
C:\bea\user_projects\domains\mydomain\.\webcode\.wlnotdelete\extract\webcode_DefaultWebApp_DefaultWebApp\jsp_servlet\_jsp\_pub\__printsbb.java:126: cannot resolve symbol
probably occurred due to an error in /jsp/pub/printSBB.jsp line 9:
Connection conn= DriverManager.getConnection(url,user,password);
C:\bea\user_projects\domains\mydomain\.\webcode\.wlnotdelete\extract\webcode_DefaultWebApp_DefaultWebApp\jsp_servlet\_jsp\_pub\__printsbb.java:126: cannot resolve symbol
probably occurred due to an error in /jsp/pub/printSBB.jsp line 9:
Connection conn= DriverManager.getConnection(url,user,password);
--------------------------------------------------------------------------------
Full compiler error(s):
C:\bea\user_projects\domains\mydomain\.\webcode\.wlnotdelete\extract\webcode_DefaultWebApp_DefaultWebApp\jsp_servlet\_jsp\_pub\__printsbb.java:126: cannot resolve symbol
symbol : class Connection
location: class jsp_servlet._jsp._pub.__printsbb
Connection conn= DriverManager.getConnection(url,user,password); //[ /jsp/pub/printSBB.jsp; Line: 9]
^
C:\bea\user_projects\domains\mydomain\.\webcode\.wlnotdelete\extract\webcode_DefaultWebApp_DefaultWebApp\jsp_servlet\_jsp\_pub\__printsbb.java:126: cannot resolve symbol
symbol : variable DriverManager
location: class jsp_servlet._jsp._pub.__printsbb
Connection conn= DriverManager.getConnection(url,user,password); //[ /jsp/pub/printSBB.jsp; Line: 9]
^
2 errors
--------------------编程问答-------------------- import="java.util.*,java.sql.*" 这里有问题,分开写。
补充:Java , Web 开发