You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by Eric Dalquist <er...@doit.wisc.edu> on 2010/05/21 18:50:41 UTC

HttpServletPortletRequestWrapper & contextPath()

I'm trying to figure out whats going on with 
https://issues.apache.org/jira/browse/PLUTO-590

What we see is that when a portlet uses a PortletRequestDispatcher the 
target of the dispatcher sees HttpServletRequest.getContextPath() 
returning the context path of the portal instead of the portlet. Digging 
into HttpServletPortletRequestWrapper the code is returning 
"pathMethodValues.contextPath" which appears to have information about 
the original request to the portal. The correct context path is in the 
currPathAttributeValues Map but not used. My initial reaction is to 
switch the data source for this method but I wanted to get some feedback 
on the implementation of this class, its fairly complex and I want to 
make sure I'm understanding whats going on correctly.

-Eric