• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error Handling in Jsp

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic