Re: ModuleException

2006-11-01 Thread Rick Schumeyer
umm...let me make something up real quick...one can obviously handle exceptions in non-struts Java apps. I was thinking at the time you could do the same thing in struts, and simply not take advantage of any of the exception handling features of struts. I didn't mean to suggest there is *one*

Re: ModuleException

2006-11-01 Thread Christopher Schultz
-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

Re: ModuleException

2006-11-01 Thread Rick Schumeyer
Thanks for the reply. It's not that I'm nervous about ModuleException, but rather that there are several ways to do it. There is the traditional java way, ModuleException, your method of catching exceptions and forwarding to a global error page...and many others. I was hoping to l

Re: ModuleException

2006-11-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rick, > Let me give this one more try: I'm considering using the > ModuleException class for exception handling. It looks like a > reasonably painless way to go. Is there any reason *not* to use this > method? You mean exception,

ModuleException

2006-11-01 Thread Rick Schumeyer
Let me give this one more try: I'm considering using the ModuleException class for exception handling. It looks like a reasonably painless way to go. Is there any reason *not* to use this method? Or if anyone can point me to an example showing a better method, that would be great

Exception handling best practices: ModuleException

2006-10-31 Thread Rick Schumeyer
I would appreciate any insights people have on the best way to handle exceptions. I would really like to keep it simple, and not create a custom exception handler or whatever if I don't need to. I ran across ModuleException, mentioned in the Jakarta Struts book by Cavaness (2nd ed for s