Exception Handling for custom error pages
Posted: Mon Dec 03, 2012 1:30 pm
I was looking to add custom pages for 404,500, ect.
I have added this to my web.xml file..
<error-code>404</error-code>
<location>/error/unexpected_response.html</location>
</error-page>
I check to see if it is working and it tries to load that resource but it can not file the resource:
Problem accessing /error/unexpected_response.html. Reason:
Not Found
Also in Eclipse I see:
PageNotFound - No mapping found for HTTP request with URI [/error/unexpected_response.html] in DispatcherServlet with name 'myappname'
I have added this to my web.xml file..
<error-code>404</error-code>
<location>/error/unexpected_response.html</location>
</error-page>
I check to see if it is working and it tries to load that resource but it can not file the resource:
Problem accessing /error/unexpected_response.html. Reason:
Not Found
Also in Eclipse I see:
PageNotFound - No mapping found for HTTP request with URI [/error/unexpected_response.html] in DispatcherServlet with name 'myappname'