-----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(....);
> }
Although that /might/ work, you probably don't want to do that. I would
imagine that Struts does a lot of configuration of each Action before
any requests are processed using it.
You might want to think about making NewAction extend OtherAction and
use a common superclass method to do some of your work for you. That
strikes me as a cleaner design, anyway.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFulBV9CaO5/Lv0PARAiGCAJ4xi3NRSUuEPlh1EEkpDuWvicCd8gCeN8dI
N6cZUr6AX6xW1DtllklPDRg=
=zkV6
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]