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
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Content - Dispositon.
How to clear the browser cache when I close my browser.
open a pdf inline using MIME in ie7
Clearing cache when I close my browser
Opening an Excel file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013