Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

handling exceptions in decode methods

843842Jun 7 2004 — edited Jun 7 2004
I have a custom component and it throws run time exceptions in the encode and decode methods at times...

I have an error page defined in web.xml and i simply print the exception message on that page...

When the exception happens in the encode method, the exception is propogated to the error page and I can correctly print the exception message...

However, when the exception happens in the decode method, even though control is redirected to the error page; the "exception" object is not propogated and is null.

Why does this happen? Any way to get around it so that I can print the correct exception message?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 5 2004
Added on Jun 7 2004
2 comments
178 views