You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Je...@dbv-winterthur.de on 2004/06/28 14:03:42 UTC

Disable 401-Message in Tomcat 5.0.25

Hi all,

it is possible, to disable the message wich appears, if I set
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); in Tomcat 5.0.25 ??

The Message looks like this:

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
<html><head><title>Apache Tomcat/5.0.25 - Error report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:22px;} H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:16px;} H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:
12px;}A {color : black;}A.name {color : black;}HR {color :
#525D76;}--></style> </head><body><h1>HTTP Status 401 - </h1><HR size="1"
noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
<u></u></p><p><b>description</b> <u>This request requires HTTP
authentication ().</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/5.0.25</h3></body></html>
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 

- Jens

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Disable 401-Message in Tomcat 5.0.25

Posted by QM <qm...@brandxdev.net>.
On Mon, Jun 28, 2004 at 02:03:42PM +0200, Jens.Mueller@dbv-winterthur.de wrote:
: it is possible, to disable the message wich appears, if I set
: response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); in Tomcat 5.0.25 ??
[snip]

Clarify "disable" -- do you want to use a custom error page?  Check the
spec for that, it involves a couple of elements in web.xml.

If not, what else do you mean?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org