_jspService is exceeding the 65535 bytes limit
436348Mar 28 2011 — edited Mar 28 2011This is related to my previous question - "http://forums.oracle.com/forums/message.jspa?messageID=9470324#9470324".
I finally got the translated Java file and the problem seems to be with the JSTL translation:
For example, the JSTL code
<c:out value="${1+2}"></c:out>
will be translated to
org.apache.taglibs.standard.tag.el.core.OutTag __jsp_taghandler_1=(org.apache.taglibs.standard.tag.el.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.el.core.OutTag.class,"org.apache.taglibs.standard.tag.el.core.OutTag value");
__jsp_taghandler_1.setParent(null);
__jsp_taghandler_1.setValue("${1+2}");
__jsp_tag_starteval=__jsp_taghandler_1.doStartTag();
if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1);
}
I got a "_jspService is exceeding the 65535 bytes limit" compile error on some JSPX page which has a lot of JSTL tags, although the JSPX file doesn't look that big. Using too many JSTL tags may run into this error easily because the translation generates a lot more Java code. I wonder if there's any way to tweak the JSTL translation and make the Java or the class file smaller.