RE: Right way to extends Action

2003-04-01 Thread Van Riper, Mike
> -Original Message- > From: V. Cekvenich [mailto:[EMAIL PROTECTED] > Sent: Monday, March 31, 2003 5:58 PM > To: [EMAIL PROTECTED] > Subject: Re: Right way to extends Action > > > > What about DispatchAction and LookupDispatchAction? Anyone > have a good &g

Re: Right way to extends Action

2003-03-31 Thread Navjot Singh
thanks buddy, got the idea now. My problem is solved. -navjot The programming world now seems to be all about writing wrapper codes ;-) - Original Message - From: "V. Cekvenich" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 01, 2003 7:27 AM Sub

Re: Right way to extends Action

2003-03-31 Thread V. Cekvenich
What about DispatchAction and LookupDispatchAction? Anyone have a good solution for reuse of common action logic across these multiple action base classes provided by Struts? I wrote my own dispatch: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/bP/WEB-INF/src/war/org/apache/scaf

Re: Right way to extends Action

2003-03-31 Thread V. Cekvenich
- we added some usefull field like a logger an a pointer to a singleton that retains application's data protected Log log = LogFactory.getLog(this.getClass()); protected static final Infos infos = Infos.getInstance(); Be aware that adding other properties to Action is not thread safe. .V

Re: Right way to extends Action

2003-03-31 Thread Igor Shabalov
essage- From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:21 AM To: Struts Users Mailing List Subject: Re: Right way to extends Action Hi, In our application we use a similar concept : - we have a class like this : public abstract class BaseAction extends Action What

RE: Right way to extends Action

2003-03-31 Thread Van Riper, Mike
> -Original Message- > From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] > Sent: Monday, March 31, 2003 4:21 AM > To: Struts Users Mailing List > Subject: Re: Right way to extends Action > > > Hi, > In our application we use a similar concept : >

RE: Right way to extends Action

2003-03-31 Thread Dario Geier
List Subject: Re: Right way to extends Action For example, in my BaseAction class, when we verify that the user is logged in : if this is not the case, => throw new IdentificationException(); In the Struts config file (or locally to the ) we add : When the IdentificationException i

Re: Right way to extends Action

2003-03-31 Thread Xavier Saint-Denis
; To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, March 31, 2003 5:32 PM Subject: RE: Right way to extends Action Yes, I know that, but still, and this is a true question. If you throw java.lang.Exception on your executeAction, then, how do you know which exce

RE: Right way to extends Action

2003-03-31 Thread Dario Geier
:22 PM To: Struts Users Mailing List Subject: Re: Right way to extends Action Hum... To my modest opinion, this is how Struts is designed. The "execute" method of the Action class raise Exception. For exemple when I implement an action that can raise an "IdentificationExcept

Re: Right way to extends Action

2003-03-31 Thread Xavier Saint-Denis
Sent: Monday, March 31, 2003 4:41 PM Subject: RE: Right way to extends Action Ho Xavier, so, how do you know which exception are thrown? You'll discover them at runtime :( -Original Message- From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 5:40 PM To:

RE: Right way to extends Action

2003-03-31 Thread Dario Geier
Ho Xavier, so, how do you know which exception are thrown? You'll discover them at runtime :( -Original Message- From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 5:40 PM To: Struts Users Mailing List Subject: Re: Right way to extends Action Hi, Why

Re: Right way to extends Action

2003-03-31 Thread Xavier Saint-Denis
ined in the Struts config file. Xavier - Original Message - From: "Dario Geier" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, March 31, 2003 2:41 PM Subject: RE: Right way to extends Action I would change the signa

RE: Right way to extends Action

2003-03-31 Thread Kris Schneider
gt; Sent: Monday, March 31, 2003 3:21 PM > To: Struts Users Mailing List > Subject: Re: Right way to extends Action > > > Hi, > In our application we use a similar concept : > > - we have a class like this : > public abstract class BaseAction extends Action > >

RE: Right way to extends Action

2003-03-31 Thread Dario Geier
:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:21 PM To: Struts Users Mailing List Subject: Re: Right way to extends Action Hi, In our application we use a similar concept : - we have a class like this : public abstract class BaseAction extends Action In this class : - we added some usefull

RE: Right way to extends Action

2003-03-31 Thread shirishchandra.sakhare
{ handleErrors(request, errors); } return result; } -Original Message- From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:21 PM To: Struts Users Mailing List Subject: Re: Right way to extends Action Hi, In our

Re: Right way to extends Action

2003-03-31 Thread Xavier Saint-Denis
Hi, In our application we use a similar concept : - we have a class like this : public abstract class BaseAction extends Action In this class : - we added some usefull field like a logger an a pointer to a singleton that retains application's data protected Log log = LogFactory.getLog(this.g