How do I specify a contentType of "application/xhtml+xml" when I'm using
freemarker templates?

With .jspx files, I can do:
<jsp:directive.page contentType="application/xhtml+xml;charset=UTF-8"/>
With .jsp files, I can do:
<%@ page contentType="application/xhtml+xml;charset=ISO-8859-1" %>

Or better yet, is there any way to configure the Struts servlet with a
global default MIME type for all freemarker/jsp templates?

Or for the ultimate, could I set a MIME type of "application/xhtml+xml" for
browsers that indicate that that they can accept that, and fallback to
"text/html" for browsers that can't (IE).
-- 
View this message in context: 
http://www.nabble.com/application-xhtml%2Bxml-MIME-Type--tf4404426.html#a12565294
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to