File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Content - Dispositon. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Content - Dispositon." Watch "Content - Dispositon." New topic

Content - Dispositon.

Sujatha Kumar
Ranch Hand

Joined: Jan 05, 2004
Posts: 134
Hi Ranchers,

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

By the way i am using XP Service Pack 1.

Any thoughts on this issue.... is higly appreciated.

I agree. Here's the link:
subject: Content - Dispositon.
It's not a secret anymore!