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

查看:147
本文介绍了字节限制重新加载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我正在使用静态包含,例如

I am using static include such as

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

但页面未加载...
我也尝试动态包括这样的as

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.

推荐答案

我们通过设置 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天全站免登陆