You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by mr...@apache.org on 2008/06/22 06:00:00 UTC

svn commit: r670307 - in /struts/struts2/trunk/apps/blank/src/main: resources/struts.xml webapp/WEB-INF/web.xml

Author: mrdon
Date: Sat Jun 21 21:00:00 2008
New Revision: 670307

URL: http://svn.apache.org/viewvc?rev=670307&view=rev
Log:
Converted web.xml to use new filter, added default action
WW-2193

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

Modified: struts/struts2/trunk/apps/blank/src/main/resources/struts.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/blank/src/main/resources/struts.xml?rev=670307&r1=670306&r2=670307&view=diff
==============================================================================
--- struts/struts2/trunk/apps/blank/src/main/resources/struts.xml (original)
+++ struts/struts2/trunk/apps/blank/src/main/resources/struts.xml Sat Jun 21 21:00:00 2008
@@ -10,6 +10,18 @@
 
     <include file="example.xml"/>
 
+
+
+    <package name="default" namespace="/" extends="struts-default">
+        <default-action-ref name="index" />
+        <action name="index">
+            <result type="redirectAction">
+                <param name="actionName">HelloWorld</param>
+                <param name="namespace">/example</param>
+            </result>
+        </action>
+    </package>
+
     <!-- Add packages here -->
 
 </struts>

Modified: struts/struts2/trunk/apps/blank/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/blank/src/main/webapp/WEB-INF/web.xml?rev=670307&r1=670306&r2=670307&view=diff
==============================================================================
--- struts/struts2/trunk/apps/blank/src/main/webapp/WEB-INF/web.xml (original)
+++ struts/struts2/trunk/apps/blank/src/main/webapp/WEB-INF/web.xml Sat Jun 21 21:00:00 2008
@@ -5,7 +5,7 @@
 
     <filter>
         <filter-name>struts2</filter-name>
-        <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
+        <filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
     </filter>
 
     <filter-mapping>