Author: mrdon Date: Sat Nov 3 07:25:38 2007 New Revision: 591628 URL: http://svn.apache.org/viewvc?rev=591628&view=rev Log: Fixing redirect code to be 303 for redirect after post pattern
Modified: struts/sandbox/trunk/struts2-rest-plugin/src/main/resources/struts-plugin.xml Modified: struts/sandbox/trunk/struts2-rest-plugin/src/main/resources/struts-plugin.xml URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-rest-plugin/src/main/resources/struts-plugin.xml?rev=591628&r1=591627&r2=591628&view=diff ============================================================================== --- struts/sandbox/trunk/struts2-rest-plugin/src/main/resources/struts-plugin.xml (original) +++ struts/sandbox/trunk/struts2-rest-plugin/src/main/resources/struts-plugin.xml Sat Nov 3 07:25:38 2007 @@ -72,9 +72,18 @@ </interceptor-stack> </interceptors> + + <result-types> + <result-type name="redirect" class="org.apache.struts2.dispatcher.ServletRedirectResult"> + <param name="statusCode">303</param> + </result-type> + <result-type name="redirectAction" class="org.apache.struts2.dispatcher.ServletActionRedirectResult"> + <param name="statusCode">303</param> + </result-type> + </result-types> - <default-interceptor-ref name="restDefaultStack"/> + <default-interceptor-ref name="restDefaultStack"/> </package> </struts>