Author: pbenedict
Date: Mon Jul 16 20:17:25 2007
New Revision: 556798

URL: http://svn.apache.org/viewvc?view=rev&rev=556798
Log:
STR-3070: Set original path for postback forms

Modified:
    
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/action/RequestProcessor.java

Modified: 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/action/RequestProcessor.java
URL: 
http://svn.apache.org/viewvc/struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/action/RequestProcessor.java?view=diff&rev=556798&r1=556797&r2=556798
==============================================================================
--- 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/action/RequestProcessor.java
 (original)
+++ 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/action/RequestProcessor.java
 Mon Jul 16 20:17:25 2007
@@ -741,6 +741,11 @@
         throws IOException {
         String path;
 
+        // Set per request the original path for postback forms
+        if (request.getAttribute(Globals.ORIGINAL_URI_KEY) == null) {
+            request.setAttribute(Globals.ORIGINAL_URI_KEY, 
request.getServletPath());
+        }
+
         // For prefix matching, match on the path info (if any)
         path = (String) request.getAttribute(INCLUDE_PATH_INFO);
 


Reply via email to