struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Schyman <andreas.schy...@ctrl-ps.com>
Subject SV: set ContentType to application/msword
Date Thu, 03 Oct 2002 14:02:36 GMT
How are you setting it in the jsp?

Using <meta http-equiv="Content-Type"...>?

Try using <%@ page contentType="application/msword" %> instead. That works
for me (with a different ContentType since I'm creating excel-data).



-----Ursprungligt meddelande-----
Från: Billy Ng [mailto:kwokng@earthlink.net] 
Skickat: den 3 oktober 2002 16:00
Till: Struts Users Mailing List
Ämne: set ContentType to application/msword

I am trying to let user to open the HTML with MS Word.  I changed the
content type to ContentType="application/msword" in the jsp, but it still
did not bring up the Word.  Does Struts set the content type to "text/html"
somewhere?

Thanks!

Billy Ng

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message