I have an app that uses a generic interceptor on all action calls to
verify if the session is active, and if it isn't, it returns
'notloggedin', which I have a global result for.
This works -great-, except for one of my actions, which is a generic
loader for JSP's.
The interceptor definition
We used thread local when we wanted something similar.. But now we have shifted
to Struts 2 and so everything is on the ActionContext and hence accessible..
-Original Message-
From: Massimo Ugues [mailto:m.ug...@gmail.com]
Sent: Thursday, April 07, 2011 7:25 AM
To: Struts Users Mailing L
On Thu, Apr 7, 2011 at 9:25 AM, Massimo Ugues wrote:
> > I want to access session objects in a class other than Action.
> You have to pass the ServletRequest object or the Session object
> to the instance of that class.
Please don't.
Doing so ties the dependent classes to either Struts or the Ser
> I want to access session objects in a class other than Action.
You have to pass the ServletRequest object or the Session object to the
instance of that class.
Mazi
On Thu, Apr 7, 2011 at 2:24 PM, Brian Thompson wrote:
> On Thu, Apr 7, 2011 at 7:05 AM, Dave Newton wrote:
>
> > On Apr 7, 2011 5
On Thu, Apr 7, 2011 at 7:05 AM, Dave Newton wrote:
> On Apr 7, 2011 5:48 AM, "Ganesh" wrote:
> > I am using Struts 1.0.2.
>
> Good lord why?
>
>
Legacy code, I'll wager. If he were building something brand-new, it would
be a no-brainer to use Struts 2.
-Brian
On Apr 7, 2011 5:48 AM, "Ganesh" wrote:
> I am using Struts 1.0.2.
Good lord why?
> I want to access session objects in a class other than Action. Is there
any way to acheive it rather than passing the information via parameter to
each and every function?
You could create a thread local and acce
Hello all,
I am using Struts 1.0.2.
I want to access session objects in a class other than Action. Is there any way
to acheive it rather than passing the information via parameter to each and
every function?
Regards
Ganesh
-
7 matches
Mail list logo