T4: how to access the web session from a page ?

View: New views
2 Messages — Rating Filter:   Alert me  

T4: how to access the web session from a page ?

by Gayard, Leonel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi.

How can I access the web session (class javax.servlet.http.HttpSession) from
a Tapestry4.0 page ? I want this page to place a parameter in the session,
which will be used by another servlet in my app.

Thanks,
Leonel
--
View this message in context: http://n2.nabble.com/T4%3A-how-to-access-the-web-session-from-a-page---tp577157p577157.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: T4: how to access the web session from a page ?

by Shing Hing Man :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have you tried injecting HttpServletRequest into your page, then
use HttpServeltRequest.getSession() ?

@InjectObject("service:tapestry.globals.HttpServletRequest")
        public abstract HttpServletRequest getServletRequest();


Shing

--- On Wed, 23/7/08, leonelag <leonel.gayard@...> wrote:

> From: leonelag <leonel.gayard@...>
> Subject: T4: how to access the web session from a page ?
> To: users@...
> Date: Wednesday, 23 July, 2008, 3:02 AM
> Hi.
>
> How can I access the web session (class
> javax.servlet.http.HttpSession) from
> a Tapestry4.0 page ? I want this page to place a parameter
> in the session,
> which will be used by another servlet in my app.
>
> Thanks,
> Leonel
> --
> View this message in context:
> http://n2.nabble.com/T4%3A-how-to-access-the-web-session-from-a-page---tp577157p577157.html
> Sent from the Tapestry Users mailing list archive at
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@...
> For additional commands, e-mail:
> users-help@...


      __________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

LightInTheBox - Buy quality products at wholesale price