摘要:JSP文件过大无法编译,后台抛异常Generated servlet error:The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit,建议修改web.xml加入初始化参数,应该能有所改善。
问题描述
项目中使用SCE表单,字段很多,使用的控件多,造成JSP文件过大,在表单预览时后台抛异常The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit。
The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit
解决:Servers/Tomcat v6.0 Server at localhost-config/web.xml 在240行左右
jsp org.apache.jasper.servlet.JspServlet fork false xpoweredBy false ** mappedfile false <load-on-startup>3</load-on-startup>
</servlet>