You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by John <jo...@quivinco.com> on 2013/06/06 13:03:34 UTC
obtaining jsessionid
Hi,
Is it possible to obtain the sessionId for the servlet session in Tapestry, I can't see how to get it with request.getSession()?
John
Re: obtaining jsessionid
Posted by John <jo...@quivinco.com>.
having the clients IP would be good too!?
----- Original Message -----
From: John
To: users@tapestry.apache.org
Sent: Thursday, June 06, 2013 12:03 PM
Subject: obtaining jsessionid
Hi,
Is it possible to obtain the sessionId for the servlet session in Tapestry, I can't see how to get it with request.getSession()?
John
Re: obtaining jsessionid
Posted by John <jo...@quivinco.com>.
This @Inject HttpServletRequest does work, many thanks.
----- Original Message -----
From: Thiago H de Paula Figueiredo
To: Tapestry users
Sent: Thursday, June 06, 2013 12:22 PM
Subject: Re: obtaining jsessionid
On Thu, 06 Jun 2013 08:07:17 -0300, Peter Hvass <P....@albourne.com>
wrote:
> Hello,
Hi!
> Grab HttpServletRequest (perhaps via RequestGlobals) and then call
> getSession().getId() on it. :) Think that should work!
You can @Inject HttpServletRequest directly at least since T5.1. No need
to use RequestGlobals directly.
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: obtaining jsessionid
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 06 Jun 2013 08:07:17 -0300, Peter Hvass <P....@albourne.com>
wrote:
> Hello,
Hi!
> Grab HttpServletRequest (perhaps via RequestGlobals) and then call
> getSession().getId() on it. :) Think that should work!
You can @Inject HttpServletRequest directly at least since T5.1. No need
to use RequestGlobals directly.
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: obtaining jsessionid
Posted by Peter Hvass <P....@albourne.com>.
Hello,
Grab HttpServletRequest (perhaps via RequestGlobals) and then call getSession().getId() on it. :) Think that should work!
Peter
----- Original Message -----
From: "John" <jo...@quivinco.com>
To: users@tapestry.apache.org
Sent: Thursday, 6 June, 2013 2:03:34 PM
Subject: obtaining jsessionid
Hi,
Is it possible to obtain the sessionId for the servlet session in Tapestry, I can't see how to get it with request.getSession()?
John