Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Content - Dispositon.
Joined: Jan 05, 2004
Oct 17, 2004 23:58:00
In one of my applications, when the user clicks submit button i should generate a text file and prompt the user to open the file.
The application prompts the file, but when i use the open the option
it opens an empty text file whereas if i use save option it saves the
file with all the contents.
Following is the code
response.setContentType("application/download"); response.setHeader("Content-Disposition", "anything;filename=mc_" + sdf.format(currrentDate) + ".pc"); response.setHeader("Cache-Control", "no-cache");
By the way i am using XP Service Pack 1.
Any thoughts on this issue.... is higly appreciated.
SCJP,SCWCD,SCBCD,SCEA Part I
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Content - Dispositon.
Clearing cache when I close my browser
How to clear the browser cache when I close my browser.
Opening an Excel file
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-2013