ate         2005/05/25 18:29:00

  Modified:    portal/src/java/org/apache/jetspeed/velocity
                        JetspeedPowerTool.java
  Log:
  Provide access to the Portal base path
  
  Revision  Changes    Path
  1.47      +6 -1      
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity/JetspeedPowerTool.java
  
  Index: JetspeedPowerTool.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity/JetspeedPowerTool.java,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- JetspeedPowerTool.java    25 May 2005 23:46:46 -0000      1.46
  +++ JetspeedPowerTool.java    26 May 2005 01:29:00 -0000      1.47
  @@ -901,6 +901,11 @@
           return (principal != null);
       }
       
  +    public String getBasePath()
  +    {
  +        return getRequestContext().getPortalURL().getBasePath();
  +    }
  +    
       public String getPageBasePath()
       {
           return getRequestContext().getPortalURL().getPageBasePath();
  
  
  

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

Reply via email to