• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP errorPage

 
AMIT ARADHYE
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my JSP, I am accessing a bean through <jsp:useBean>.In the same JSP I have decalred my on errorPage in <%@ page %> directive.
But when ever a bean class (aboue said) throws an exception, browser's errorPage is displayed and not mine one. All syntax and decalrations are as per standard.
Note: In a bean class whole code is written in a try-catch block. Is try-catch block is a culprit?
 
Bhushan Jawle
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the code
 
Dhananjay Inamdar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
Do you declare a page directive in your actual error page with isErrorPage="true" attribute? This is also necessary, while displaying the custom error page.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!