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 
http://www.herongyang.com/jsp/response_header_5.html.

Table of Contents

 About This Book

 Reference Citations in 2016

 Reference Citations in 2015

 Reference Citations in 2014

 Reference Citations in 2013

 Reference Citations in 2012

 Reference Citations in 2011

 Reference Citations in 2010

 Reference Citations in 2009

Reference Citations in 2008

 QaTraq Pro API

 Service Oriented Computing for Dynamic Virtual Learning Environments

 Inverted ?

 Migrating files to new computer

 mswsock.dll!WSPStartup +0x102b

 edu.uiuc.ncsa.soap.SOAPUtil.java

 MSSQL binary data

 Correct Character Encoding

 Put icons on bookmarks sidebar folders

 Blob Storage via REST from Java?

 java.lang.OutOfMemoryError: unable to create new native thread

 Obróbka filmów VOB

 ASP Search Function

 SSLHandshakeException unable to find valid certification...

Using response.setContentType to switch HTML to Word

 Automatic Creation of Different Types of Test Subjects

 ISM 6121 Information Systems Implementation

 JVMSTAT[JSTAT]

 Time out bei Aufruf von WebService (php-Script)

 Store and retrieve Chinese characters using Coldfusion MX7 and MySQL5.0

 converting VCD player to DVD player

 tomcat中配置https

 αρχειο .pl

 Using ASP.Net c# To add/edit/delete data (ms access)

 regarding JDBC

 A UML/SPT Model Analysis Methodology

 Creation d'un nouvel utilisateur sous SQL Server 2000

 No Suitable Driver connecting jdk1.5 with javaDB derby

 Page in Chinese

 Acessar MSAccess com Hibernate

 SiLu – Riktlinjer för spelmotor

 [WebService] come fare?

 JDBC help needed; java.lang.NoClassDefFoundError

 CSV export of tickets has wrong encoding

 MapGuide Manual - Active selections

 Reference Citations in 2007

 Reference Citations in 2006

 Reference Citations in 2005

 Reference Citations in 2004

 Reference Citations in 2003

 PDF Printing Version