The RunData object has access to the session in 2 different ways.

RunData.getSession(), which returns the current HttpSession object.

Or

RunData.getUser(), which is the current user that is stored in the HttpSession.  From 
the User object you can invoke User.getTemp() & User.setTemp() which gives you access 
to a Hashtable internal to the User within the session.

hth,
Scott



> -----Original Message-----
> From: Stuart Belden [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 8:16 AM
> To: [EMAIL PROTECTED]
> Subject: Re: **** Session on portlet velocity ***** !
> 
> I believe  $data.getSession().someSessionMethod()  works
> 
> 
> >>> [EMAIL PROTECTED] 02/04/03 06:43AM >>>
> I'd like to put object in the Session on a velocity portlet.
> 
> On jsp servlet i use to do :
> 
> <% Session.setAttribute("objectname" , object) %>
> 
> Can i do the same on Velocity .
> How to do it  ?
> 
> 
> Thank by advance
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to