The data object below is an instance of RunData. The user object is
stored in the session and put into data for each request. TurbineUser
has getTemp() and setTemp() methods that allow you to store arbitrary
data inside the user object.
User user = data.getUser();
Date date = new Date();
User.setTemp("foo", date);
--------------------------------------------
Quinton McCombs
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2003 2:11 AM
> To: [EMAIL PROTECTED]
> Subject: How to save objects to a Turbine servlet session?
>
>
> Can someone explain to me by sample code on how to put and
> get objects in
> a Turbine servlet session? If I want to access $foo from
> all screens of
> a user session, how do I store "foo" once and pass it
> between requests
> later?
> In other words, if the life time of context and rundata is
> once per request,
> what
> is the Turbine's recommended way to pass objects from request
> to request? Thanks for the help in advance. -Joe
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]