aspose file tools
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
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: 368
<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
 
jQuery in Action, 2nd edition
 
subject: Difference between errorPage in jsp and <error-page> in web.xml