It doesn't put the session in automatically?? the same with the request? >>> Nathan Bubna <nbu...@gmail.com> 4/18/2012 2:02 PM >>> If you put the HttpSession into the Velocity context, then you can use it.
The VelocityViewServlet (part of the VelocityTools project) does that for you automatically. Thus the references to $session being "magically" available. On Wed, Apr 18, 2012 at 11:46 AM, Michael Remijan <mremi...@bjc.org> wrote: > > I want to be get the user's session id in my VM page. > > How do I do that? > > I have found references to $request.getSession() but this does not work. > $request and $session are not bound so I can't figure out how I can get the > session id. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org > For additional commands, e-mail: user-h...@velocity.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org For additional commands, e-mail: user-h...@velocity.apache.org
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org For additional commands, e-mail: user-h...@velocity.apache.org