What is purpose of <init-param>mappedfile</init-param> in JspServlet in web.xml?
Asked Answered
O

1

5

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.

Ouzel answered 19/12, 2016 at 7:7 Comment(5)
see docs.jboss.org/jbossweb/7.0.x/config/jsp.htmlDessalines
error of exceeding the 65535 bytes good opportunity to use servletsDessalines
Use SO search: #7496485Danica
@Azodious: Thanks but it does not explain details about how this change will impact application, now or near future. So i need bit detailed explanation of Same.Ouzel
@ScaryWombat: I am not authorized to do that. Thanks for your link. If you have bit detailed information in laymen language. I shall be more thankful to you.Ouzel
D
8

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?

Danica answered 19/12, 2016 at 7:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.