Author: pbenedict
Date: Mon Jul 16 20:17:01 2007
New Revision: 556797
URL: http://svn.apache.org/viewvc?view=rev&rev=556797
Log:
STR-3070: Set original path for postback forms
Modified:
struts/struts1/trunk/core/src/main/java/org/apache/struts/action/RequestProcessor.java
Modified:
struts/struts1/trunk/core/src/main/java/org/apache/struts/action/RequestProcessor.java
URL:
http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts/action/RequestProcessor.java?view=diff&rev=556797&r1=556796&r2=556797
==============================================================================
---
struts/struts1/trunk/core/src/main/java/org/apache/struts/action/RequestProcessor.java
(original)
+++
struts/struts1/trunk/core/src/main/java/org/apache/struts/action/RequestProcessor.java
Mon Jul 16 20:17:01 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);