[jboss-cvs] jboss-portal/portlet/src/main/org/jboss/portal/portlet/impl/jsr168 ...

Julien Viet julien at jboss.com
Mon Aug 21 19:20:52 EDT 2006


  User: julien  
  Date: 06/08/21 19:20:52

  Modified:    portlet/src/main/org/jboss/portal/portlet/impl/jsr168 
                        PortletRequestImpl.java
  Log:
  remove usage of contextPath information coming from the PortalWebApp and instead use information provided by the servlet container at runtime
  
  Revision  Changes    Path
  1.35      +2 -3      jboss-portal/portlet/src/main/org/jboss/portal/portlet/impl/jsr168/PortletRequestImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PortletRequestImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-portal/portlet/src/main/org/jboss/portal/portlet/impl/jsr168/PortletRequestImpl.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -b -r1.34 -r1.35
  --- PortletRequestImpl.java	31 Jul 2006 19:29:53 -0000	1.34
  +++ PortletRequestImpl.java	21 Aug 2006 23:20:52 -0000	1.35
  @@ -63,7 +63,7 @@
    *
    * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
    * @author <a href="mailto:boleslaw.dawidowicz at jboss.org">Boleslaw Dawidowicz</a>
  - * @version $Revision: 1.34 $
  + * @version $Revision: 1.35 $
    */
   public abstract class PortletRequestImpl implements PortletRequest
   {
  @@ -327,8 +327,7 @@
   
      public String getContextPath()
      {
  -      // Fixme : should use the incoming request ?
  -      return container.getApplication().getContext().getContextPath();
  +      return (String)dreq.getAttribute("javax.servlet.include.context_path");
      }
   
      // PLT.11.1.6
  
  
  



More information about the jboss-cvs-commits mailing list