Reference Citations - HerongYang.com - v2.92, by Dr. Herong Yang
Using response.setContentType to switch HTML to Word
'Controlling HTTP Response Header Lines' tutorial was cited in a CodeRanch JSP forum post in 2008.
The Controlling HTTP Response Header Lines tutorial was cited in a CodeRanch JSP forum post in 2008.
Subject: Using response.setContentType to switch HTML to Word Date: Oct 16, 2008 Author: craig motell Source: http://www.coderanch.com/t/294364/JSP/java /Using-response-setContentType-switch-HTML My intention is NOT to do this in a servlet because I figure I'm just outputting HTML. First, thank you, I'll check out the Apache POI. Maybe that is the approach I want and I'll test against Internet 7.0. But what I like was the fact that I could have this HMTL file, with a table in it. Then if users wanted to "print" this to the printer, the quick and dirty way I would use is to convert it to word via the "setContentType". Jeanne Boyarsky, also suggested the use of a servlet to print out stuff in three different formats (html, doc, and excel). I don't know what a word format would be. Would I still use html tags? Anyway, I'll check out Apache POI and also I saw another link along similar discussion lines at https://www.herongyang.com/jsp/response_header_5.html.
Table of Contents