This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes Difference between errorPage in jsp and <error-page> in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Difference between errorPage in jsp and <error-page> in web.xml " Watch "Difference between errorPage in jsp and <error-page> in web.xml " New topic
Author

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

Ramasamy Anbalagan
Greenhorn

Joined: Dec 14, 2009
Posts: 20

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

Joined: Jul 10, 2008
Posts: 365
<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


Thanks,
Shailesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between errorPage in jsp and <error-page> in web.xml
 
Similar Threads
error-page tag facing problem
Exception Handling
JSP Interview Questions
How to include errorpage in xhtml page.
<error-page> tag mechanism