struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronel Sumibcay <sumib...@INNOTIV.COM>
Subject [PATCH] Include ActionForward uri if ActionServlet was included
Date Mon, 15 Jul 2002 21:33:44 GMT
--- RequestProcessor.java.orig	Mon Jul 15 14:26:05 2002
+++ RequestProcessor.java	Mon Jul 15 14:26:56 2002
@@ -397,7 +397,13 @@
             response.sendRedirect
                 (response.encodeRedirectURL(request.getContextPath() +
uri));
         } else {
-            doForward(uri, request, response);
+            if (request.getAttribute("javax.servlet.include.request_uri")
== null) {
+                doForward( uri, request, response);
+            }
+            else {
+                //The ActionServlet was included. So include the uri.
+                doInclude(uri, request, response);
+            }
         }
 
     }

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message