THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Search for <servlet-class>org.apache.jasper.servlet.JspServlet </servlet-class> and add the following elements under the servlet class
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<init-param> <param-name>development</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>modificationTestInterval</param-name> <param-value>10</param-value> </init-param> |
...
Using this you can retain the compiled JSPs of all Web applications running in the server across server restarts. Edit <geronimo_home>/var/catalina/conf/web.xml. Search for org.apache.jasper.servlet.JspServlet and add the following elements
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<init-param> <param-name>scratchdir</param-name> <param-value> ../var/catalina/temp </param-value> </init-param> <init-param> <param-name>keepgenerated</param-name> <param-value>false</param-value> </init-param> |
...
Configure the web deployment descriptor web.xml in application as follows
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<servlet> <servlet-name>jsp</servlet-name> <servlet-class> org.apache.jasper.servlet.JspServlet </servlet-class> <init-param> <param-name>development</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>fork</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>scratchdir</param-name> <param-value> ../var/catalina/temp </param-value> </init-param> <init-param> <param-name>keepgenerated</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>engineOptionsClass</param-name> <param-value> org.apache.geronimo.jasper.JspServletOptions </param-value> </init-param> <load-on-startup>3</load-on-startup> </servlet> <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.jsp</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.jspx</url-pattern> </servlet-mapping> |
...