Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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.

Consider Paul's rocket mass heater.
subject: Content - Dispositon.