portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity JetspeedVelocityViewServlet.java
Date Tue, 24 Aug 2004 14:28:17 GMT
weaver      2004/08/24 07:28:17

  Modified:    portal/src/java/org/apache/jetspeed/velocity
                        JetspeedVelocityViewServlet.java
  Log:
  RequestContext added to the Velocity contenxt.
  
  Revision  Changes    Path
  1.5       +3 -2      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity/JetspeedVelocityViewServlet.java
  
  Index: JetspeedVelocityViewServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity/JetspeedVelocityViewServlet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- JetspeedVelocityViewServlet.java	18 Aug 2004 13:58:32 -0000	1.4
  +++ JetspeedVelocityViewServlet.java	24 Aug 2004 14:28:17 -0000	1.5
  @@ -18,6 +18,7 @@
   import javax.servlet.http.HttpServletRequest;
   import javax.servlet.http.HttpServletResponse;
   
  +import org.apache.jetspeed.request.RequestContext;
   import org.apache.pluto.Constants;
   import org.apache.velocity.Template;
   import org.apache.velocity.context.Context;
  @@ -62,7 +63,7 @@
           {
               renderRequest.setAttribute(VELOCITY_CONTEXT_ATTR, ctx);
           }        
  -
  +        ctx.put("JS2RequestContext", request.getAttribute(RequestContext.REQUEST_PORTALENV));
           ctx.put("renderRequest", renderRequest);
           ctx.put("renderResponse", renderResponse);
           ctx.put("portletConfig", portletConfig);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message