velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <nbu...@gmail.com>
Subject Re: getting session id
Date Wed, 18 Apr 2012 19:02:05 GMT
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 <MRemijan@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-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message