Yesterday, I met a problem that gave me a headache. I made a common JSP, only to measure it is OK, but, put in the other JSP include it, will be wrong as shown in the title: The Code of Method _jspservice (HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit. The JSP used to adjust it is written in this way:<% @include file= "/module name/nani_include.jsp"% >. So I changed this include phrase to <jsp:include flush= "true" page= "/module name/nani_include.jsp"/>. No more mistakes. Because <%@ include file= ""%> is in the JSP container to translate the JSP file into a servlet file, and to edit it, is the static contains the JSP, that is, the editor is a kind of file, and Java file is forbid over 65k this big , so it will be wrong as shown in the title. and <jsp:include flush= "true" page= "" "/> in the translation and editing, the production of two kinds of files, that is, the modified JSP to generate a unique type of file, and the JSP generated by the application of its type file, only a method to adjust the JSP.
But the problem is now. The parameters are not going to go in.
The solution is to adjust its JSP with <jsp:param>.
<jsp:include flush= "true" page= "/Module name/nani_include.jsp" >
<jsp:param name= "ss" value= "_programform"/>
</jsp:include>
In the used JSP, the El table is used to connect the parameters:
${SS}
(Whatever the sign in it, name "SS" is OK)
I hope there are people who can't solve the problem can see hehe
Solution for Java class size exceeding 65535 bytes because JSP include many files (reproduced)