Re: Creating an instance of an action a class

2007-01-26 Thread Joe Germuska
On 1/26/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, Frank W. Zammetti wrote: > There is no special status for an Action beyond that though, no > values set on it by Struts, that sort of thing. Just instantiate and > execute as you wo

Re: Creating an instance of an action a class

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, Frank W. Zammetti wrote: > There is no special status for an Action beyond that though, no > values set on it by Struts, that sort of thing. Just instantiate and > execute as you would any other class. Good to know. - -chris -BEGIN PGP S

Re: Creating an instance of an action a class

2007-01-26 Thread Frank W. Zammetti
An Action is no different from any other class, you can do this without any ill effects. Whether it's architecturally a good idea is a whole other question, but from a technical standpoint, no problem. I've done this numerous times in the past, it works just fine. Remember though that the method

Re: Creating an instance of an action a class

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chamal, chamal desilva wrote: > Is it safe to create an instance of a action class in > another action class and use. > >public ActionForward execute () >{ > OtherAction oact = new OtherAction(); > oact.execute(); >

Creating an instance of an action a class

2007-01-25 Thread chamal desilva
Hi, Is it safe to create an instance of a action class in another action class and use. For example .. public NewAction extends Action { public ActionForward execute () { OtherAction oact = new OtherAction(); oact.execute(); } } Thanking you, Chamal.