tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: "Default" ContentType for JSP
Date Mon, 01 Oct 2001 20:29:10 GMT
Since you're using Tomcat 4.0, one option would be to create a Filter that
did this for you.

Craig

On Mon, 1 Oct 2001, Plamen Petkov wrote:

> Date: Mon, 01 Oct 2001 23:20:15 +0300
> From: Plamen Petkov <plamendp@bgstore.com>
> Reply-To: tomcat-user@jakarta.apache.org, plamendp@bgstore.com,
>      tomcat-user@jakarta.apache.org
> To: tomcat-user@jakarta.apache.org
> Subject: "Default" ContentType for JSP
>
> Hi,
>
>
> [FreeBSD/Apache 1.3.20/Tomcat 4.0]
>
> How to set a kinda "default" Content Type of response in a JSP page ? I
> am not talknig about <META ...>  content type setting, wich is an HTML
> issue.
>
> JSP->servlet translation always result in a servlet code with:
>
>
> ...
> response.setContentType("text/html;charset=ISO-8859-1");
> ...
>
>
>
> The only workaround I found is to use:
>
>
> ...
> response.setContectType("blah-blah");
> ...
>
> in the begining of JSP page, but I find this very annoying.
>
> thank you
>
> --
> Plamen D. Petkov ICQ#2214327
> plamendp@bgstore.com
> http://www.bgstore.com
>


Mime
View raw message