[i already posted this message to comp.lang.java.programmer about 1
month ago, but didn't receive a reply. maybe somebody on this list
does know how to solve the problem.]

hello,

i just played around with tomcat, but there seems to be a problem when
displaying error/msgs. they should be encoded as content-type
text/html, but tomcat serves them encoded as content type text/plain.

for example i have the path (on an tomcat 4.0.3 installation connected
to apache with mod_webapp):

http://www.somedomain.org/webapps/jsp/snp/snoop.jsp

when i call:

http://www.somedomain.org/webapps/jsp/snp/snoop.nothere

ich get an 404 error msg from tomcat with content type text/plain:

HTTP/1.1 404 Not Found
Date: Sun, 09 Jun 2002 22:13:18 GMT
Server: Apache/1.3.9 (Unix) Debian/GNU mod_ssl/2.4.10 OpenSSL/0.9.4
Connection: close
Content-Type: text/plain; charset=iso-8859-1

<html><head><title>Apache Tomcat/4.0.3 - Error report</title> [...]

when i do the same with the standalone version of tomcat i get the
following headers:

HTTP/1.1 404 /jsp/snp/snoop.nothere
Date: Sun, 09 Jun 2002 22:15:15 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
Connection: close

==> no content type...

i suspect that in the 1. case tomcat doesn't send a content-type, and
apache sets it to some text/plain default.

any hints how i can tell tomcat to encode the error msgs as text/html?

cu
/gst

-- 
/// guenther starnberger || at-net ||    JID:       \\\
\\\ GST-RIPE || http://www.vbs.at/ || [EMAIL PROTECTED] ///

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to