taylor      2004/08/19 16:58:51

  Modified:    portal/src/java/org/apache/jetspeed/container/invoker
                        ServletPortletInvoker.java
  Log:
  added request parameter during portlet dispatching named 
"org.apache.jetspeed.context" to hold the jetspeed context i.e. "/jetspeed"
  it appears that weblogic interrupts the servlet spec SRV 8.3.1 differently from 
Tomcat and JBoss regarding which context gets returned by either:
  
  request.getContextPath()
  request.getAttribute("javax.servlet.include.context_path")
  
  with Tomcat or JBoss it returns the dispatching servlet context i.e. "/jetspeed"
  with Weblogic it returns the dispatched servlet context i.e. "/HW_App"
  
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.15      +4 -1      
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/invoker/ServletPortletInvoker.java
  
  Index: ServletPortletInvoker.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/invoker/ServletPortletInvoker.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ServletPortletInvoker.java        19 Aug 2004 17:28:48 -0000      1.14
  +++ ServletPortletInvoker.java        19 Aug 2004 23:58:51 -0000      1.15
  @@ -31,6 +31,7 @@
   import javax.servlet.ServletContext;
   import javax.servlet.ServletRequest;
   import javax.servlet.ServletResponse;
  +import javax.servlet.http.HttpServletRequest;
   
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  @@ -205,6 +206,8 @@
               servletRequest.setAttribute(ContainerConstants.PORTLET_REQUEST, 
portletRequest);
               servletRequest.setAttribute(ContainerConstants.PORTLET_RESPONSE, 
portletResponse);
               servletRequest.setAttribute(ContainerConstants.PORTLET_CONFIG, 
portletConfig);
  +            servletRequest.setAttribute(ContainerConstants.PORTAL_CONTEXT, 
((HttpServletRequest)servletRequest).getContextPath());
  +
               
JetspeedPortletFactoryProxy.setCurrentPortletDefinition(portletDefinition);            
            
               
               dispatcher.include(servletRequest, servletResponse);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to