RE: Executing code before each action

2002-09-10 Thread Trieu, Danny
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

Re: Executing code before each action

2002-09-10 Thread Eddie Bush
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

RE: Executing code before each action

2002-09-10 Thread Brett
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)

RE: Executing code before each action

2002-09-10 Thread Trieu, Danny
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

RE: Executing code before each action

2002-09-10 Thread Trieu, Danny
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

RE: Executing code before each action

2002-09-10 Thread Mark Silva
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