What is purpose of 'mappedfile' init-param in JspServlet in web.xml?
<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'? What will happen if i set it to '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. I need to find whether this will cause any global issue or not if changed to false or true.
It is a parameter to tune performance.
The default property values are tuned for development of JSP files at the cost of performance. To maximize performance, set jsp-config properties to these non-default values:
development - false (as an alternative, set to true and give modificationTestInterval a large value)
mappedfile - false
trimSpaces - true
suppressSmap - true
fork - false (on Solaris)
classdebuginfo - false
mappedFile description: Should we generate static content with one print statement per input line, to ease debugging? true or false, default true.
Source: 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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With