Author: chris.laprun(a)jboss.com
Date: 2008-07-10 12:52:39 -0400 (Thu, 10 Jul 2008)
New Revision: 11410
Modified:
branches/JBoss_Portal_Branch_2_6/wsrp/src/main/org/jboss/portal/wsrp/producer/RenderRequestProcessor.java
Log:
- JBPORTAL-2067: retrieve the HttpServletRequest properly.
Modified:
branches/JBoss_Portal_Branch_2_6/wsrp/src/main/org/jboss/portal/wsrp/producer/RenderRequestProcessor.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/wsrp/src/main/org/jboss/portal/wsrp/producer/RenderRequestProcessor.java 2008-07-10
16:51:47 UTC (rev 11409)
+++
branches/JBoss_Portal_Branch_2_6/wsrp/src/main/org/jboss/portal/wsrp/producer/RenderRequestProcessor.java 2008-07-10
16:52:39 UTC (rev 11410)
@@ -54,6 +54,7 @@
import org.jboss.portal.wsrp.core.UnsupportedMimeTypeFault;
import org.jboss.portal.wsrp.core.UnsupportedModeFault;
import org.jboss.portal.wsrp.core.UnsupportedWindowStateFault;
+import org.jboss.portal.wsrp.servlet.ServletAccess;
/**
* @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
@@ -189,7 +190,7 @@
PortletUtils.SUFFIX,
WSRPRewritingConstants.WSRP_REWRITE_TOKEN);
- result = URLTools.replaceURLsBy(result, new
AbsoluteURLReplacementGenerator(invocation.getDispatchedRequest()));
+ result = URLTools.replaceURLsBy(result, new
AbsoluteURLReplacementGenerator(ServletAccess.getRequest()));
return result;
}
}