webtier@glassfish.java.net

Re: Redirect JSF resource request to custom HTTP status 404 ...

From: <forums_at_java.net>
Date: Tue, 14 Feb 2012 17:08:30 -0600 (CST)

Hi there,

The main resason why it is using setStatus instead of sendError is because a
resource request
is a request that is always triggered from a main page. If it is not found it
will set the status
of 404 and a short body that indicates the resource is not found.

If you want to hide the version of Tomcat, you probably want to look at the
Tomcat documentation,
specifically the security related documentation. Start
here: http://tomcat.apache.org/tomcat-7.0-doc/security-howto.html [1]

Manfred


[1] http://tomcat.apache.org/tomcat-7.0-doc/security-howto.html

--
[Message sent by forum member 'mriem']
View Post: http://forums.java.net/node/883521