In Apache's httpd.conf, replace:

DefaultType text/plain

with:

DefaultType text/html



rob wrote:

> When tomcat displays error messages after an exception in the 
> underlying application typically does some formatting on the error 
> produced (ie adding styles).
>
> I use mod_jk to run my application where the jsp/servlets function 
> fine over the connector to tomcat.  However if an error occurs 
> resulting in an exception the error message from tomcat is not 
> formatted properly.  I end up seeing all the html and style elements 
> in plain text which makes reading the error message quite annoying.
>
> This does not however happen when exceptions occur and running tomcat 
> in standalone mode.
>
> Now one might think the connector is not working but unless an 
> exception occurs the jsp and servlets work fine.
>
> I believe when tomcat displays error messages that go over the 
> connector the Content-Type header is being incorrectly specified to 
> plain/text instead of text/html?
>
> Can anyone comment on this?
>
> Also, this may not be reproducable in internet explorer I've noticed 
> IE sometimes ignores Content-Type headers and does what it wants.  You 
> may
> have to use Netscape or Mozilla to reproduce.
>
>
> -- 
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to