This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Joined: Aug 12, 2003
Nov 22, 2006 20:37:00
If I want to flush my output to CSV file, I use:
response.setHeader("Content-Disposition", "attachment; filename=download.csv");
But what to set for the Content-Type if I want my output in TXT file? Please help
Author and ninkuma
Joined: Jan 10, 2002
Nov 22, 2006 21:24:00
There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the
JavaRanch Naming Policy
adjust your display name
to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be
Asking smart questions
Books by Bear
Joined: Dec 11, 2004
Nov 23, 2006 07:28:00
response.setHeader("Content-Type", "text/plain"); response.setHeader("Content-Disposition", "attachment; filename=download.txt");
How to ask a question...
Simple Servlet Examples
subject: set Content-Type
File Download issue...
Re: downloading from a servlet
Outputting to .txt
File Download from jsp
open a pdf inline using MIME in ie7
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014