重新加载jsp页面时字节限制超过问题? [英] Byte limit Exceed problem when reloading a jsp page?

查看:18
本文介绍了重新加载jsp页面时字节限制超过问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 jsp 的新手.我得到的错误是方法的代码_jspService(HttpServletRequest, HttpServletResponse) 超过了 65535 字节的限制

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" /> 

运气不好..

如有任何帮助,我们将不胜感激.

Any help would be appriciated.

推荐答案

我们通过将 Tomcat-Config 中的 JspServlet 的 mappedfile 设置为 false 在这里修复"了这个问题.转到 %TOMCAT_HOME%/conf/web.xml 并将以下 init-param 添加到 JspServlet:

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>

这并没有解决 64 KiB 的限制,但有助于它发生很晚,因为生成的代码更短.

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.

这篇关于重新加载jsp页面时字节限制超过问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆