Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Im new to jsp.I'm getting error is The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit

I am using static include such as

<%@ include file="/jsp/common/createScriptMsg.jsp" %> 

but the page is not loading ... I'd also try dynamiac include such as

<jsp:include page="/jsp/common/createScriptMsg.jsp" /> 

NO LUCK..

Any help would be appriciated.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
611 views
Welcome To Ask or Share your Answers For Others

1 Answer

We "fixed" this here by setting mappedfile to false for JspServlet in our Tomcat-Config. Go to %TOMCAT_HOME%/conf/web.xml and add the following init-param to the JspServlet:

    <init-param>
        <param-name>mappedfile</param-name>
        <param-value>false</param-value>
    </init-param>

This does not solve the 64 KiB limit but helps in that way that it occurs much later because the generated code is shorter then.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...