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
-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
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
-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();
>
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.
5 matches
Mail list logo