File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes export content to a text file using servlet with save dialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

export content to a text file using servlet with save dialog

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 245
my application using GWT, and I plan to use servlet to export the data in gwt to a text file, but I do not know how to export the data to a text file (with a prompt of save dialog) using servelt, anyone can help?
I see some article said need to use the URL class??
I do not know how to set the destination of outputstream, or just set the header, content type is ok?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63053
    
  69

Please do not post the same question more than once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: export content to a text file using servlet with save dialog
 
It's not a secret anymore!