Author: husted
Date: Mon Jan 14 07:23:36 2008
New Revision: 611829

URL: http://svn.apache.org/viewvc?rev=611829&view=rev
Log:
WW-2421 Move devMode true setting from web.xml in REST showcase application to 
the documentation page. 

Experience shows that if we set such things in examples, people will monkey 
them in production applications (and then blame the framework for poor 
performance). I strongly suggest that we try to make all examples both 
production-quality and production-ready. 

Modified:
    struts/struts2/trunk/apps/rest-showcase/src/main/webapp/WEB-INF/web.xml

Modified: 
struts/struts2/trunk/apps/rest-showcase/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/apps/rest-showcase/src/main/webapp/WEB-INF/web.xml?rev=611829&r1=611828&r2=611829&view=diff
==============================================================================
--- struts/struts2/trunk/apps/rest-showcase/src/main/webapp/WEB-INF/web.xml 
(original)
+++ struts/struts2/trunk/apps/rest-showcase/src/main/webapp/WEB-INF/web.xml Mon 
Jan 14 07:23:36 2008
@@ -1,34 +1,30 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<web-app id="starter" version="2.4" 
-         xmlns="http://java.sun.com/xml/ns/j2ee"; 
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
+<web-app id="starter" version="2.4"
+         xmlns="http://java.sun.com/xml/ns/j2ee";
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
-       
-       <display-name>Struts 2 Rest Example</display-name>
-       
-       
-       <!-- Filters -->
-       <!-- START SNIPPET: filter -->
+
+  <display-name>Struts 2 Rest Example</display-name>
+
+
+  <!-- Filters -->
+  <!-- START SNIPPET: filter -->
     <filter>
         <filter-name>action2</filter-name>
         
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
         <init-param>
-               <param-name>actionPackages</param-name>
-               <param-value>org.apache.struts2.rest.example</param-value>
-        </init-param>
-        <init-param>
-               <param-name>struts.devMode</param-name>
-               <param-value>true</param-value>
+          <param-name>actionPackages</param-name>
+          <param-value>org.apache.struts2.rest.example</param-value>
         </init-param>
     </filter>
     <!-- END SNIPPET: filter -->
-       
+
     <filter-mapping>
         <filter-name>action2</filter-name>
         <url-pattern>/*</url-pattern>
     </filter-mapping>
-       
+
     <!-- Welcome file lists -->
     <welcome-file-list>
         <welcome-file>index.jsp</welcome-file>


Reply via email to