Re: Interceptor to access session objects

2010-12-28 Thread ChitraS
uts.apache.org > For additional commands, e-mail: user-h...@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. ---

Re: Interceptor to access session objects

2008-07-04 Thread Ralf Fischer
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, 200

Re: Interceptor to access session objects

2008-06-24 Thread Lukasz Lenart
> 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 StaticParametersIntercep

Re: Interceptor to access session objects

2008-06-24 Thread Dave Newton
--- On Tue, 6/24/08, John Smith <[EMAIL PROTECTED]> 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

Re: Interceptor to access session objects

2008-06-24 Thread Lukasz Lenart
I think, the best solution for you is just to write your own interceptor that will do what you want and applicable interface. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: Interceptor to access session objects

2008-06-24 Thread John Smith
On Tue, Jun 24, 2008 at 2:18 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Tue, 6/24/08, John Smith <[EMAIL PROTECTED]> wrote: >> Basically I add objectXYZ to the session in actionA then >> the user submits a query to ActionB. I want to retrieve >> objectXYZ from the session without directly

Re: Interceptor to access session objects

2008-06-24 Thread John Smith
I had a look at ScopedModelDrivenInterceptor but I didn't managed to get it to work .There isn't much documentation on it or any examples how the params are passed in the action :( On Tue, Jun 24, 2008 at 1:41 PM, <[EMAIL PROTECTED]> wrote: > Take a look at the Scoped Model Driven > Interceptor

Re: Interceptor to access session objects

2008-06-24 Thread Dave Newton
--- On Tue, 6/24/08, John Smith <[EMAIL PROTECTED]> wrote: > Basically I add objectXYZ to the session in actionA then > the user submits a query to ActionB. I want to retrieve > objectXYZ from the session without directly calling the > a method on the session object inside actionB in order > to

Re: Interceptor to access session objects

2008-06-24 Thread stanlick
Take a look at the Scoped Model Driven Interceptor Scott On Tue, Jun 24, 2008 at 6:32 AM, John Smith <[EMAIL PROTECTED]> wrote: > On Tue, Jun 24, 2008 at 1:12 PM, Dave Newton <[EMAIL PROTECTED]> > wrote: > > --- On Tue, 6/24

Re: Interceptor to access session objects

2008-06-24 Thread John Smith
On Tue, Jun 24, 2008 at 1:12 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Tue, 6/24/08, John Smith <[EMAIL PROTECTED]> wrote: >> Which interceptor can I use to access session objects by >> putting them as parameters in struts.xml? > > What, specifically, are you trying to accomplish? Basica

Re: Interceptor to access session objects

2008-06-24 Thread Dave Newton
--- On Tue, 6/24/08, John Smith <[EMAIL PROTECTED]> wrote: > Which interceptor can I use to access session objects by > putting them as parameters in struts.xml? What, specifically, are you trying to accomplish? Dave - To unsub

Interceptor to access session objects

2008-06-24 Thread John Smith
Hello, Which interceptor can I use to access session objects by putting them as paramteres in struts.xml? Many thanks, J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]