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 <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED], [EMAIL PROTECTED],
>      [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> 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
> [EMAIL PROTECTED]
> http://www.bgstore.com
>

Reply via email to