weaver 2004/08/24 07:25:55
Modified: portal/src/java/org/apache/jetspeed/pipeline/valve/impl
ActionValveImpl.java
Log:
Makes the current RequestContext available to the processAction() method of the
invoked portlet.
Revision Changes Path
1.10 +5 -2
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/pipeline/valve/impl/ActionValveImpl.java
Index: ActionValveImpl.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/pipeline/valve/impl/ActionValveImpl.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ActionValveImpl.java 2 Aug 2004 18:57:27 -0000 1.9
+++ ActionValveImpl.java 24 Aug 2004 14:25:54 -0000 1.10
@@ -18,6 +18,7 @@
import java.io.IOException;
import javax.portlet.PortletException;
+import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
@@ -69,9 +70,11 @@
if (actionWindow != null)
{
HttpServletResponse response =
request.getResponseForWindow(actionWindow);
+ HttpServletRequest requestForWindow =
request.getRequestForWindow(actionWindow);
+ requestForWindow.setAttribute(RequestContext.REQUEST_PORTALENV,
request);
container.processPortletAction(
actionWindow,
- request.getRequestForWindow(actionWindow),
+ requestForWindow,
response);
// The container redirects the client after PortletAction processing
// so there is no need to continue the pipeline
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]