tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Issue With SSI And JSP
Date Fri, 02 Oct 2009 20:13:01 GMT
Leonard Bedner wrote:
>>>         <init-param>
>>>           <param-name>contentType</param-name>
>>>           <param-value>text/x-server-parsed-html(;.*)?</param-value>
>>>         </init-param>

Leave this as is.

> Perhaps I am just not understanding how to use the content type, most likely
> because I do not know anything about regular expressions. In short, how do I
> set the content type for jsp?

At the start of your JSP add:
<%@ page contentType="text/x-server-parsed-html; charset=UTF-8" %>

Adjust the charset if you need to.

Mark




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message