刚才错误自行解决,但又报下面错误
Error 500--Internal Server Error 
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request代码如下
 <%@ page contentType="text/html;charset=gb2312"%><%@ page import="java.lang.*, java.io.*, java.sql.*, java.util.*"%>
<html>
<head>
<title>数据库测试
</title>
</head>
<body><%
//Error reading data from static cursor cache.Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
//Connection conn=DriverManager.getConnection
String url="jdbc:microsoft:sqlserver://localhost:1433;selectmethod=cursor;DatabaseName=yiyaonew";
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 top 5 namec,kind from nsaler";ResultSet rs=stmt.executeQuery(sql);while(rs.next()) {%>您的第一个字段内容为:<%=rs.getString(1)%>您的第二个字段内容为:<%=rs.getString(2)%>
<br><%}%><%out.print("数据库操作成功,恭喜你");%><%rs.close();stmt.close(); conn.close(); %></body></html>