连接sql 2000数据库出错!!!!!!!
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 5 in the jsp file: /conn.jsp
Generated servlet error:
I:\Tomcat5.0\work\Catalina\localhost\myweb\org\apache\jsp\conn_jsp.java:49: illegal character: \12288
An error occurred at line: 5 in the jsp file: /conn.jsp
Generated servlet error:
銆?銆?String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=word";
^
An error occurred at line: 5 in the jsp file: /conn.jsp
Generated servlet error:
I:\Tomcat5.0\work\Catalina\localhost\myweb\org\apache\jsp\conn_jsp.java:49: illegal character: \12288
An error occurred at line: 5 in the jsp file: /conn.jsp
Generated servlet error:
銆?銆?String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=word";
源码-------------------------------------------------------------
<%@ page language="java" contentType="text/html;charset=gb2312"%>
<%@ page import="Java.sql.*"%>
<html>
<body>
<% Class.forName("com.microsoft.JDBC.sqlserver.SQLServerDriver").newInstance();
String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=word";
//word我的数据库的
String user="sa";
String password="";
Connection conn= DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="select * from t_counter"; //t_counter 表
ResultSet rs=stmt.executeQuery(sql);
while(rs.next()) {%>
您的第一个字段内容为:<%=rs.getString(1)%>
您的第二个字段内容为:<%=rs.getString(2)%>
<%}%>
<%out.print("数据库操作成功,恭喜你");%>
<%rs.close();
stmt.close();
conn.close();
%>
</body>
</html>
是什么问题啊,能帮我解决一下吗???