the attribute is set when a session is created.

The stripes action is far later and that is when the action bean is 
initialised. The stripes action only sets a value of the bean.

getContext().getRequest().getSession().setAttribute("BeanUsr", new BeanUsr()); 
returns null

but value="${usr.names}" returns the names

Yea the object was cast. 
thnx 4 the help.



Date: Mon, 7 Apr 2008 19:52:17 +0100
From: [EMAIL PROTECTED]
To: stripes-users@lists.sourceforge.net
Subject: Re: [Stripes-users] Accessing HttpSession  stripes









Have you tried to set this attribute just before getting it... to ensure there 
is nothing in between to interfere? Also I've added a typecast when you get 
attribute object from session...
 
e.g.
1. getContext().getRequest().getSession().setAttribute("BeanUsr", new 
BeanUsr());
2. BeanUsr usr = 
(BeanUsr)getContext().getRequest().getSession().getAttribute("BeanUsr");
***************************************************************************************************The
 information in this email is confidential and may be legally privileged. 
Access to this email by anyone other than the intended addressee is 
unauthorized. If you are not the intended recipient of this message, any 
review, disclosure, copying, distribution, retention, or any action taken or 
omitted to be taken in reliance on it is prohibited and may be unlawful. If you 
are not the intended recipient, please reply to or forward a copy of this 
message to the sender and delete the message, any attachments, and any copies 
thereof from your 
system.***************************************************************************************************
_________________________________________________________________
Get Hotmail on your mobile. Text MSN to 63463 now!
http://mobile.uk.msn.com/pc/mail.aspx
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to