JSP: Quote symbol expected in Tomcat but not in WebSphere -
i'm using struts2 in application , following error when run app in tomcat org.apache.jasper.jasperexception: /myapp/testreview.jsp (line: 29, column: 45) quote symbol expected
line29: <s:iterator value="testsummarylist" status=stat> <s:iterator> <tr> <td><s:property value="value" /></td> <td><s:property value="key" /></td> </tr> </s:iterator> </s:iterator>
same code works fine when deploy app in websphere. fixes error in tomcat status="stat"
is tomcat jsp compiler?
no, it's way jstl (xml) parsed:
http://www.herongyang.com/jsp/jstl-overview-general-syntax-of-jstl-tags.html
having value of status attribute without quotes renders invalid, hence jasperexception when file parsed.
the rest of stack trace this:
org.apache.jasper.jasperexception: /myapp/testreview.jsp (line: 29, column: 45) quote symbol expected org.apache.jasper.compiler.defaulterrorhandler.jsp error(defaulterrorhandler.java:40) org.apache.jasper.compiler.errordispatcher.dispatch(errordispatcher.java:407) org.apache.jasper.compiler.errordispatcher.jsperror(errordispatcher.java:88) org.apache.jasper.compiler.parser.parseattribute(parser.java:198) org.apache.jasper.compiler.parser.parseattributes(parser.java:148) org.apache.jasper.compiler.parser.parseusebean(parser.java:929) org.apache.jasper.compiler.parser.parsestandardaction(parser.java:1112) org.apache.jasper.compiler.parser.parseelements(parser.java:1421) org.apache.jasper.compiler.parser.parse(parser.java:130) org.apache.jasper.compiler.parsercontroller.doparse(parsercontroller.java:255) org.apache.jasper.compiler.parsercontroller.parse(parsercontroller.java:103) org.apache.jasper.compiler.compiler.generatejava(compiler.java:185) org.apache.jasper.compiler.compiler.compile(compiler.java:354) org.apache.jasper.compiler.compiler.compile(compiler.java:334) org.apache.jasper.compiler.compiler.compile(compiler.java:321) org.apache.jasper.jspcompilationcontext.compile(jspcompilationcontext.java:592)
so should see parser class threw exception (although part of jsp compilation process).
Comments
Post a Comment