日期:2014-05-18  浏览次数:20463 次

数据库异常
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.aiyiweb.com/java-web/317.html