当前位置: 代码迷 >> Java Web开发 >> 帮下忙!
  详细解决方案

帮下忙!

热度:154   发布时间:2007-05-31 22:54:51.0
帮下忙!

这是我的错误信息 The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 9 in the jsp file: /01.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\_01_jsp.java:55: ';' expected


An error occurred at line: 9 in the jsp file: /01.jsp
Generated servlet error:
String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName="user";
^


An error occurred at line: 9 in the jsp file: /01.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\_01_jsp.java:55: unclosed string literal


An error occurred at line: 9 in the jsp file: /01.jsp
Generated servlet error:
String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName="user";
^
2 errors

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:437)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.

希望那个好心人能帮下我!我的QQ是76539995


----------------解决方案--------------------------------------------------------
url连接字符串有问题,你们都仔细一点就不会出现这样的问题了,
还有就是不要用什么记事本编写,要用就是IDE开发工具,不要听原来那些说用记事本写代码能提高你的能力,根本就是在浪费时间。

----------------解决方案--------------------------------------------------------
  相关解决方案