tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message