Skip to content

Commit d123900

Browse files
committed
Disable JSP modification checks on each request for production.
@see http://www.eclipse.org/jetty/documentation/current/configuring-jsp.html
1 parent 2ea7a94 commit d123900

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/main/config/test-override-web.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
<param-value>test</param-value>
1313
</context-param>
1414

15+
<servlet id="jsp">
16+
<servlet-name>jsp</servlet-name>
17+
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
18+
<!-- Check for JSP modification on every access -->
19+
<init-param>
20+
<param-name>development</param-name>
21+
<param-value>true</param-value>
22+
</init-param>
23+
</servlet>
24+
1525
<!--
1626
Web console for managing H2 database.
1727

src/main/webapp/WEB-INF/web.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@
1212
<param-value>prod</param-value>
1313
</context-param>
1414

15+
<servlet id="jsp">
16+
<servlet-name>jsp</servlet-name>
17+
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
18+
<!-- Don't check for JSP modification on every access -->
19+
<init-param>
20+
<param-name>development</param-name>
21+
<param-value>false</param-value>
22+
</init-param>
23+
<!-- Should Jasper check for modified JSPs? No. -->
24+
<init-param>
25+
<param-name>reloading</param-name>
26+
<param-value>false</param-value>
27+
</init-param>
28+
</servlet>
29+
1530
<context-param>
1631
<param-name>contextClass</param-name>
1732
<param-value>

0 commit comments

Comments
 (0)