DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24538>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24538

JasperException: "file.jsp(x,y) equal symbol expected" refers to incorrect location

           Summary: JasperException: "file.jsp(x,y) equal symbol expected"
                    refers to incorrect location
           Product: Tomcat 4
           Version: 4.1.27
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


With a jsp file containing an unknown error, the following exception is thrown:

org.apache.jasper.JasperException: /WEB-INF/jsp/policy/policydetail.jsp(451,34)
equal symbol expected
        at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
        at 
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
        at 
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126)
        at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
        at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
        at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:718)
        at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
        at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
        at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
        at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
        at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
        at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
        at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
        at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
        at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
        at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
        at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
        at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
        at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
        at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
        at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
        at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
        at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
        at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)

In the original jsp, the line and column 451, 34 points at:

451: <TR>
452: <TD style="white-space: nowrap; text-align: left"><bean:message
key="policy.text.reinsureadmin" />&nbsp;</TD>
453: <TD style="white-space: nowrap; text-align: left" colspan="1">
454: <bean:write name="form" property="<%=\"reinsureAdmins[\" + index + \"]\"%>"
filter="true" />%
455: </TD>

As can be seen, line 451 column 34 is not part of a JSP tag.

In addition, the error message "equals symbol expected" is so short as to be
meaningless (it would only make sense if 451/34 pointed at as JSP tag without an
=, which in this case it does not). Adding some context to the exception error
message will go a long way to assist a devloper track down jsp errors.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to