|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
In my application I set the error code and the http error response using the http response methods response.setStatus. The client that I am using to talk to web server is windows cleint. Now when the application gets 404 error code, the web server throws the following HTTP/1.1 404 Not found Date: Tue, 16 May 2006 07:11:12 GMT Server: Apache/2.0.48 (Unix) mod_ssl/2.0.48 OpenSSL/0.9.7c mod_jk2/2.0.2 Content-Type: text/html; charset=ISO-8859-1 Content-Language: en-US Content-Length: 959 <html><head><title>Apache Tomcat/5.0.18 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-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 404 - Not found</h1><HR size="1" noshade><p><b>type</b> Status report</p><p><b>message</b> <u>Not Found ..... I want to suprress the message <html><head><title>Apache Tomcat/5.0.18 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-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 404 - Not found</h1><HR size="1" noshade><p><b>type</b> Status report</p><p><b>message</b> <u>Not Found ..... Is there any way I can do the same. Thanks Megha |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On 16 May 2006, megha wrote:
> Now when the application gets 404 error code, the web server throws the > following > > HTTP/1.1 404 Not found > .... > > I want to suprress the message > <html><head><title>Apache Tomcat/5.0.18 - Error > > Is there any way I can do the same. ErrorDocument 404 " http://httpd.apache.org/docs/1.3/mod...#errordocument -- The working man is dead - the acute accent is alive. http://www.workingmansdeath.com/imag...kinoplakat.gif |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On 16 May 2006, megha wrote:
> Now when the application gets 404 error code, the web server throws the > following > > HTTP/1.1 404 Not found > .... > > I want to suprress the message > <html><head><title>Apache Tomcat/5.0.18 - Error > > Is there any way I can do the same. ErrorDocument 404 " http://httpd.apache.org/docs/1.3/mod...#errordocument -- The working man is dead - the acute accent is alive. http://www.workingmansdeath.com/imag...kinoplakat.gif |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
"megha" <tina.raj@gmail.com> said:
> In my application I set the error code and the http error response >using the http response methods response.setStatus. The client that I >am using to talk to web server is windows cleint. >Now when the application gets 404 error code, the web server throws the >following > >HTTP/1.1 404 Not found >Date: Tue, 16 May 2006 07:11:12 GMT >Server: Apache/2.0.48 (Unix) mod_ssl/2.0.48 OpenSSL/0.9.7c >mod_jk2/2.0.2 >Content-Type: text/html; charset=ISO-8859-1 >Content-Language: en-US >Content-Length: 959 > ><html><head><title>Apache Tomcat/5.0.18 - Error >report</title> .... >I want to suprress the message ><html><head><title>Apache Tomcat/5.0.18 - Error >report</title> .... Create an error document for your application; documentation is in Java Servlet specification: http://www.jcp.org/aboutJava/communi...154/index.html The error document can be either a static page containing an error message, or a servlet or jsp making some processing based on the error status. The other response would've been applicable to Apache httpd server, but not for Apache Tomcat (which seems to be what you're running). -- Wolf a.k.a. Juha Laiho Espoo, Finland (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++ "...cancel my subscription to the resurrection!" (Jim Morrison) |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
|
|
![]() |
| Outils de la discussion | |
|
|