读书人

数据库错误

发布时间: 2013-09-11 17:59:57 作者: rapoo

数据库异常
HTTP Status 500 -

--------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Exception in JSP: /testDB.jsp:36

33: Hello ${param.name}!
34: </c:if>
35: --%>
36: <%Class.forName( "com.microsoft.jdbc.sqlserver.SQLServerDriver ").newInstance();
37: String url= "jdbc:microsoft: sqlserver://localhost:1433;DatabaseName=businfo ";
38: String user= "sa ";
39: String password= "aaa ";




[解决办法]
数据库连接不上

1、可能是你三个包没放入bin目录中
2、可能你的jsp上的语法有问题,没有%> 符号
3、可能String user= "sa "; String password= "aaa "; 是写在String url里面的不能分开写



我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html

读书人网 >SQL Server

热点推荐