tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Plamen Petkov <plame...@bgstore.com>
Subject "Default" ContentType for JSP
Date Mon, 01 Oct 2001 20:20:15 GMT
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