zoukankan      html  css  js  c++  java
  • 标准动作中犯的错误,使用过程中忘记写结束符号所发生的错误

    例如

    错误写法: <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.


  • 相关阅读:
    信息安全系统设计基础第二周学习总结
    java实验报告五
    java实验报告三
    java实验报告二
    java实验报告一
    mysql
    C语言理论知识
    数据存储与输出输入
    软件开发概述 编程语言概述
    C语言 常用单词
  • 原文地址:https://www.cnblogs.com/danmao/p/3864189.html
Copyright © 2011-2022 走看看