Re: Manually Instantiating Action classes

2005-07-20 Thread Leon Rosenberg
On Wed, 2005-07-20 at 08:43 +0200, Borislav Sabev wrote: > a k wrote: > > >In the process of writing an Action class, I realized that it needs > >some application functionality (not general utility kinda > >functionality) that is already part of a method in a different Action > >class. > > > >So,

Re: Manually Instantiating Action classes

2005-07-19 Thread Borislav Sabev
a k wrote: In the process of writing an Action class, I realized that it needs some application functionality (not general utility kinda functionality) that is already part of a method in a different Action class. So, Action MyAction1 needs to access method myMethod2 in Action MyAction2. Here a

Fwd: Manually Instantiating Action classes

2005-07-19 Thread Ed Griebel
Forgot to CC the list! -- Forwarded message -- From: Ed Griebel <[EMAIL PROTECTED]> Date: Jul 19, 2005 9:45 AM Subject: Re: Manually Instantiating Action classes To: a k <[EMAIL PROTECTED]> Well, I re-read my answer and it wasn't very clear at all. You ca

Re: Manually Instantiating Action classes

2005-07-19 Thread a k
I am not sure I understand when you say: Don't make them static > if they depend on session or request state, as you'll shoot yourself > in the foot due to the implicit threading in the app server. Why can't I pass in a request object to a static method? As long as it doesn't depend on other stat

Re: Manually Instantiating Action classes

2005-07-18 Thread Ed Griebel
On 7/18/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I used to do a lot of this back when I wasn't as clear on why Actions > shouldn't contain actual code (this started when I was using a custom > framework my company build that had examples that didn't make it clear > you shouldn't do this).

Re: Manually Instantiating Action classes

2005-07-18 Thread a k
I am going with the helper classes. Thanks to all who replied! On 7/18/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I used to do a lot of this back when I wasn't as clear on why Actions > shouldn't contain actual code (this started when I was using a custom > framework my company build that

Re: Manually Instantiating Action classes

2005-07-18 Thread Frank W. Zammetti
I used to do a lot of this back when I wasn't as clear on why Actions shouldn't contain actual code (this started when I was using a custom framework my company build that had examples that didn't make it clear you shouldn't do this). One Action instantiating another I think is sometimes not a

AW: Manually Instantiating Action classes

2005-07-18 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 18. Juli 2005 23:36 > An: Struts Users Mailing List > Betreff: Re: Manually Instantiating Action classes > > On 7/18/05, Leon Rosenberg <[EMAIL PROTECTED]> wro

AW: Manually Instantiating Action classes

2005-07-18 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 18. Juli 2005 23:36 > An: Struts Users Mailing List > Betreff: Re: Manually Instantiating Action classes > > On 7/18/05, Leon Rosenberg <[EMAIL PROTECTED]> wro

Re: Manually Instantiating Action classes

2005-07-18 Thread Michael Jouravlev
On 7/18/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > First choice action hierarchy > Second choice helper classes > Or maybe a good combination of both :-) Chaining? ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Manually Instantiating Action classes

2005-07-18 Thread a k
In the process of writing an Action class, I realized that it needs some application functionality (not general utility kinda functionality) that is already part of a method in a different Action class. So, Action MyAction1 needs to access method myMethod2 in Action MyAction2. Here are the options

Re: Manually Instantiating Action classes

2005-07-18 Thread Dave Newton
a k wrote: What is a better way in this scenario? In particular, is it bad to manually instantiate Action classes? I don't know if it's "bad" per se, but if it's shared functionality then from an architectural standpoint I would think it'd better to move it into a helper class. Dave --

Re: Manually Instantiating Action classes

2005-07-18 Thread Leon Rosenberg
Mailing List > Betreff: Re: Manually Instantiating Action classes > > a k wrote: > > >What is a better way in this scenario? In particular, is it bad to > >manually instantiate Action classes? > > > > > I don't know if it's "bad" per

Re: Manually Instantiating Action classes

2005-07-18 Thread Leon Rosenberg
Mailing List > Betreff: Re: Manually Instantiating Action classes > > a k wrote: > > >What is a better way in this scenario? In particular, is it bad to > >manually instantiate Action classes? > > > > > I don't know if it's "bad" per