https://issues.apache.org/bugzilla/show_bug.cgi?id=52135

--- Comment #7 from Keith Donald <keith.don...@gmail.com> 2012-03-30 20:17:10 
UTC ---
The XSD for Servlet 3.0's web.xml clearly allows a <error-page> element
containing only a <location> sub-element. Older versions of the XSD do not.
This is an indication this is a Servlet 3.0 feature.

This feature is useful. Most REST API implementations need to report unhandled
errors the same way: by returning a JSON body containing the error message
(reason). Having to define a error-page entry for each error code that may be
set by the application via HttpServletResponse#sendError is more work than it
should be. Having a single error-page entry for a default error handler is a
lot simpler and future proof.

I consider this a bug in Tomcat 7. Shoot me down if you want!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to