You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ralf Fischer <th...@googlemail.com> on 2008/07/04 21:09:55 UTC

Re: Interceptor to access session objects

Well, then I'd just use the ScopeInterceptor [1] to transfer arbitraty
action properties from one action to another via the session. Works
like a charm.

Cheers,
-Ralf

[1] http://struts.apache.org/2.1.2/struts2-core/apidocs/org/apache/struts2/interceptor/ScopeInterceptor.html

On Tue, Jun 24, 2008 at 4:39 PM, Lukasz Lenart
<lu...@googlemail.com> wrote:
>> 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).
>
> It will not work, I've been trying. There is a bug in
> StaticParametersInterceptor, it will try to first put param on stack
> (and for above example, it will throw an exception) and then it will
> try to parse it.
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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