You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Kwan, Kenneth Y" <Ke...@pccw.com> on 2001/08/27 12:05:08 UTC

Ho to change default ContentType ?

By default, JSP compiler generates “response.setContentType(“text/html;
charset=ISO-8859-1”) in every JSP page. I can change the type by manually
inserting “response.setContentType(“text/html; charset=xxx”) in every JSP
page. 

Is there any way to change the “default” charset in ContentType such that
there is no need to setContentType manually?

Kenneth