You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Gianluigi <da...@yahoo.it> on 2007/10/23 10:34:11 UTC
Session and application scope
Hi to all, i'm a JSP developer and i want to know a more on Tapestry 5, it seem very cool! :)
Only a question, how i use a request or a Session in Tapestry 5? How can i instanciate an
Application Object?
in JSP i wrote : HttpSession session and session.setProperty("Key");
and in Tapestry 5?
Thanks a lot Muzero
___________________________________
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Session and application scope
Posted by Peter Stavrinides <p....@albourne.com>.
>How can i instanciate an Application Object?
@ApplicationState
private MyObject objectName_;
> how i use a request
@Inject
private RequestGlobals requestGlobals_;
Then you have access to the Servlet API with things like:
HttpServletRequest request = requestGlobals.getHTTPServletRequest();
Gianluigi wrote:
> Hi to all, i'm a JSP developer and i want to know a more on Tapestry 5, it seem very cool! :)
>
> Only a question, how i use a request or a Session in Tapestry 5? How can i instanciate an
> Application Object?
>
> in JSP i wrote : HttpSession session and session.setProperty("Key");
> and in Tapestry 5?
>
> Thanks a lot Muzero
>
>
> ___________________________________
> L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Session and application scope
Posted by Massimo Lusetti <ml...@gmail.com>.
On 10/23/07, Gianluigi <da...@yahoo.it> wrote:
> Only a question, how i use a request or a Session in Tapestry 5? How can i instanciate an
> Application Object?
>
> in JSP i wrote : HttpSession session and session.setProperty("Key");
> and in Tapestry 5?
Take a look at application state:
http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/appstate.html
--
Massimo
http://meridio.blogspot.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org