• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between errorPage in jsp and <error-page> in web.xml  RSS feed

 
Ramasamy Anbalagan
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

Can any one give clarification regarding below one.

I would like to know the difference between errorPage attibute in jsp and <error-page> in web.xml for handling exception as well as error.

when we will use errorPage as well as <error-page> in web.xml?

thanks advanced..
 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<error-page> in JSP will be for whole web application....
we can map Exceptions & error code in DD.

page in errorPage attribute will be called only when any type of error came on that JSP only.

Hope this will helps
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!