aspose file tools*
The moose likes Servlets and the fly likes open file-download window from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "open file-download window from servlet" Watch "open file-download window from servlet" New topic
Author

open file-download window from servlet

Per Lovdinger
Ranch Hand

Joined: Jun 11, 2001
Posts: 35
Hi all,
This is the scenario I'm trying to achieve:
- Display html page with a button or href "download csv file"
- the user clicks
- the file-download pop-up window should appear,so the user
can save the file to any location

This is how far I get:
- when the user clicks a servlet gets activated
- Servlet:
- creates the csv file and write it to disk
- now I want the servlet to do something so that the
file-download window opens
- I've tried with forward the request to the url (which only displays the content in the browser)
- I write to HttpServletResponse it opens the file in excel which I don't want

Any ideas ?
Thanks in advance
Per
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: open file-download window from servlet