This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic