Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Errorpage  RSS feed

 
A Babu
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,
what is Errorpage and isErrorpage.help me with code snippets.please.

cheers,
Babu.
 
Albin Joseph
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Error page will be invoked and diplayed when an error occured in a JSP page. Every error page must contain an page attribute called isErrorPage="true" and the page where the error or exception occured must tell which is the error page using errorpage="myerropage.jsp"

Fore more info Check this
http://www.imagescript.com/atg/articles/jsp_j2ee/error_page_basics.htm
 
Rahim Vindhani
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Albin Joseph:
Error page will be invoked and diplayed when an error occured in a JSP page. Every error page must contain an page attribute called isErrorPage="true" and the page where the error or exception occured must tell which is the error page using errorpage="myerropage.jsp"

Fore more info Check this
http://www.imagescript.com/atg/articles/jsp_j2ee/error_page_basics.htm



Actually in JSP, we can delegate the exception to some another page so that it can be reused for multiple exceptions.

So in the exception source page we use errorPage="pageName" attribute to define exception handler page.

And in the exception handler page, we use isErrorPage="true" to indicate that this page is going to handle exceptions.

I think this will answer your question.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!