JSP mysql 求助:打开http://localhost:8080/myapp/first.jsp出现以下错误代码是什么意思?
来源:百度知道 编辑:UC知道 时间:2024/06/01 00:28:44
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: Unable to compile class for JSP
An error occurred at line: 5 in the jsp file: /myapp/first.jsp
Generated servlet error:
D:\Tomcat5.0\work\Catalina\localhost\_\org\apache\jsp\myapp\first_jsp.java:48: unclosed string literal
An error occurred at line: 5 in the jsp file: /myapp/first.jsp
Generated servlet error:
String url ="jdbc:mysql:
^
An error occurred at line: 5 in the jsp file: /myapp/first.jsp
Generated servlet error:
D:\Tomcat5.0\work\Catalina\localhost\_\org\apache\jsp\myapp\fi
--------------------------------------------------------------------------------
type Exception report
message
description 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: 5 in the jsp file: /myapp/first.jsp
Generated servlet error:
D:\Tomcat5.0\work\Catalina\localhost\_\org\apache\jsp\myapp\first_jsp.java:48: unclosed string literal
An error occurred at line: 5 in the jsp file: /myapp/first.jsp
Generated servlet error:
String url ="jdbc:mysql:
^
An error occurred at line: 5 in the jsp file: /myapp/first.jsp
Generated servlet error:
D:\Tomcat5.0\work\Catalina\localhost\_\org\apache\jsp\myapp\fi
Unable to compile class for JSP
不能把jsp编译成servlet
估计是.jsp文件写的有问题
服务器内部错误
看你的 文件first_jsp.java
的48和51行有什么错误?