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!

sending customized error back using the HttpServletResponse object

843841Oct 14 2003 — edited Oct 14 2003
hi,

I want to send customized error codes using the HttpServletResponse.sendError(int StatusCode,String message).

As per the documentation I should get the customized status code on the browser response. but it am getting only the exception that is thrown back and not the customized error that is sent using the sendError method.

is there a way out to show the customized status message to the client.

it would be very helpful in making the life of the end user simpler.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 11 2003
Added on Oct 14 2003
1 comment
301 views