struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: ModuleException
Date Wed, 01 Nov 2006 17:42:36 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rick,

Rick Schumeyer wrote:
> I was hoping to learn about the pros/cons of various methods before
> picking one.

I prefer my technique because it does not require throwing another
exception. It's a tiny amount of time, but throwing an exception takes
more time than doing the work manually in the action. Also, I get to
direct Struts to my preferred error handler (ActionForward) instead of
using whatever has been configured globally as the exception handling page.

Perhaps it makes the Action code more verbose, but I am okay with that.

Just my .02

By the way, what is "the traditional Java way" in this case?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFSNyM9CaO5/Lv0PARAl5CAJ9zncxCrPn9iART66kFr8k3PSp1bQCbBu6f
Ns5fo+0kCXZSq3V4ujSdBBQ=
=/MyO
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message