You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ChitraS <cs...@impetus.co.in> on 2010/12/29 08:52:31 UTC

Re: Interceptor to access session objects

Dave, ${#session.foo} works in struts.xml.


newton.dave wrote:
> 
> --- On Tue, 6/24/08, John Smith <de...@gmail.com> wrote:
>> I like it to be automatically set, using the getter/setter
>> methods in the action. Can this be done with either 
>> SessionAware or through ActionContext?
> 
> No. ScopedModelDriven, IIRC, will also only retrieve the "model" property; 
> don't think it'll do arbitrary properties (could be wrong on that one,
> though).
> 
> You could try using an OGNL expression that references #session (like
> ${#session.foo}) but I don't know if that'll work. After trying it, it'd
> be nice if you reported back and/or added it to wiki (if it worked).
> 
> Dave
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Interceptor-to-access-session-objects-tp18088366p30549666.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org