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

Categories

0 votes
613 views
in Technique[技术] by (71.8m points)

java - Byte limit Exceed problem when reloading a jsp page?

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

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

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...