Menu
Hello!
I’m trying to use JSP to send content in RTF format and have it opened automatically by MS Word. The content I’m sending opens in Word as text, not as rendered RTF. My JSP page has the following:
<%@ page contentType=”application/rtf;charset=utf-8″ %>
<% response.setHeader(“Content-Disposition”,”attachment; filename=” + “Letter.rtf” ); %>
RTF content here
I’ve also tried contentType=”text/rtf” with the same results. I’ve used this same code to go directly to Word using just:
<% response.setHeader(“Content-Disposition”,”attachment; filename=” + “Letter.doc” ); %>
Ideas??
Thx