jsp页面报500错

来源:百度知道 编辑:UC知道 时间:2024/05/14 15:29:44
--------------------------------------------------------------------------------

type Exception report

message

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

exception

org.apache.jasper.JasperException: /newShow.jsp(27,2) According to TLD or attribute directive in tag file, attribute items does not accept any expressions
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1172)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:819)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
org.apache.jasper.compiler.Node$Nodes.visit

看到了这个没有: /newShow.jsp(27,2)

JSP页面出现语法错误导致容器转义JSP成Servlet时失败!修正JSP页面,问题可以解决。

支持上面的说法

我也正在做个关于jsp和servlet的小项目,也遇到这种报500的错误问题,但是我的是在逗调试通过了之后有时突然报这种错误,只要把tomcat服务器关闭重新开启就行了....

重启tomcat即可!