例如
错误写法: <jsp:getProperty property="userName" name="user" >
正确写法:<jsp:getProperty property="userName" name="user" />
导致的异常:
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: /homework2-2.jsp(35,8) According to TLD, tag jsp:getProperty must be empty, but is not 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:132) org.apache.jasper.compiler.Parser.parseBody(Parser.java:1626) org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004) org.apache.jasper.compiler.Parser.parseGetProperty(Parser.java:907) org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1134) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1448) org.apache.jasper.compiler.Parser.parse(Parser.java:133) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216) org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167) org.apache.jasper.compiler.Compiler.compile(Compiler.java:306) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
标准动作中犯的错误,使用过程中忘记写结束符号所发生的错误,布布扣,bubuko.com
时间: 2024-10-10 08:57:06