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

--- Comment #1 from Konstantin Kolinko <knst.koli...@gmail.com> ---
(In reply to comment #0)
> sendError(int) methods calls sendError(int, null) internally. Thus generating 
> a HTML
> page without a message. This is not mentioned in the docs. One could assume
> that the response will be empty.

The sendError() method behaviour is defined by several chapters of the Servlet
specification. In "Servlet 3.0 Rev a":

a) ch.5.3 Convenience Methods
b) ch.10.9 Error Handling

It does not matter much which of sendError(..) methods is called.

> seems to be a verbatim copy of Oracle's Servlet API

It is the other way around. The origin is in the old times when Tomcat was the
reference implementation. Tomcat Javadocs were maintained as the official ones
at that time.

-- 
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