[英]What is purpose of <init-param>mappedfile</init-param> in JspServlet in web.xml?
What is purpose of 'mappedfile' init-param in JspServlet in web.xml? web.xml中JspServlet中“映射文件” init-param的用途是什么?
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>mappedfile</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
What if i set it to 'TRUE'? 如果我将其设置为“ TRUE”怎么办? What will happen if i set it to 'False'?
如果将其设置为“ False”会发生什么?
Note: I need to implement this as a solution to problem in which one of JSP in application is giving error of exceeding the 65535 bytes limit. 注意:我需要将其实现为解决以下问题的解决方案,其中应用程序中的一个JSP给出的错误超过65535个字节的限制。 I need to find whether this will cause any global issue or not if changed to false or true.
我需要确定如果更改为false或true,这是否会导致任何全局问题。
It is a parameter to tune performance. 它是调整性能的参数。
The default property values are tuned for development of JSP files at the cost of performance. 为开发JSP文件而调整了默认属性值,但会降低性能。 To maximize performance, set jsp-config properties to these non-default values:
为了使性能最大化,请将jsp-config属性设置为以下非默认值:
development - false (as an alternative, set to true and give modificationTestInterval a large value)
development-false(或者,将其设置为true并为ModifyTestInterval提供较大的值)
mappedfile - false
映射文件-假
trimSpaces - true
trimSpaces-true
suppressSmap - true
preventSmap-true
fork - false (on Solaris)
fork-false(在Solaris上)
classdebuginfo - false
classdebuginfo-错误
mappedFile description: Should we generate static content with one print statement per input line, to ease debugging? appedFile描述:我们是否应该在每行输入一条打印语句的情况下生成静态内容,以简化调试工作? true or false, default true.
true或false,默认为true。
Source: https://docs.oracle.com/cd/E19226-01/820-7693/beatx/index.html 来源: https : //docs.oracle.com/cd/E19226-01/820-7693/beatx/index.html
You can look here too: What does "mappedfile" parameter in JspServlet stand for? 您也可以在这里查看: JspServlet中的“ mappedfile”参数代表什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.