• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error Handling in Jsp

 
Keynes Paul Paul
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

#1 .
I am trying to handle the HTML error based on error codes.I tried to use the <error-page> tag in web.xml as I need to implement the error handling for all the jsp pages, but for some reason even when the HTML error happens the control is not passed over to the error page mentioned in <error-page>.
#2. I am using the jsp headers for error handling.
<%@page errorPage ="/errorPage.jsp"%>
in all the pages that where I need to handle the HTML errors. but same here,the control is not passed to the error handling page.

Also ,
As we know that we can handle the exception object in the errorHandling page, is there a possiblity to handle errors as how we handle exceptions.Kindly help.

Regards,
Keynes.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using IE ? Make sure to turn off the Show Friendly Messages option.
 
Keynes Paul Paul
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thanks for your reply, I tried it with the friendly messages turned off, and it worked ,but instead of a regular html error page, is there a possibility to configure a pop-up instead of the html page. Kindly advise.

Regards,
Keynes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic