Yes ...
-Original Message-
From: Brett [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 10:40 AM
To: Struts Users Mailing List
Subject: RE: Executing code before each action
If I understand servlet filters correctly you mean I could simply set /* to
go to my filter and
Go read up on filters. Here's the short of it:
- transparent to client and application
- can modify request / response
Since you can grab the session from the request, you could check for the
presence of your attribute in the session, set it if it's not there, and
just breeze past if i
oes not depend on it.
>
>-Original Message-
>From: Mark Silva [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, September 10, 2002 10:20 AM
>To: Struts Users Mailing List
>Subject: RE: Executing code before each action
>
>
>you could sublass the Action Object (BaseAction)
ction class
does not depend on it.
-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 10:20 AM
To: Struts Users Mailing List
Subject: RE: Executing code before each action
you could sublass the Action Object (BaseAction), and provide
Use servlet filter
-Original Message-
From: Brett [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: Executing code before each action
Hello,
I have a piece of code than I need to execute before each action (it checks
which country
you could sublass the Action Object (BaseAction), and provide this functionality.
your Action classes will then subclass this object. you may need to rename your
perform method and call that my you BaseAction class' perform method.
-mark
-Original Message-
From: Brett [mailto:[EMAIL
6 matches
Mail list logo