wood burning stoves*
The moose likes Servlets and the fly likes client side download Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

client side download

Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
How to save a downloaded file at client side? I mean saving a file in the client's system.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

That depends on what kind of client you're talking about. If your client is a browser, then you just leave it to the browser and the user to save the downloaded file wherever the user decides.
Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
It's like an end user who did some shopping and made payment and he wants save a copy of transaction with himself. All this flow is in struts... but somehow the request to save the page is not going to server I believe
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Okay. So do you have a question? Your last reply sort of sounded like you had an existing system where you had tried to implement downloading a file, but failed.
Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
Some improvement! I click on save,the request goes to webserver and readies the pdf(has the pdf) .i need to get this to client system.i have an action clas pdfgen and i am redirecting to new jsp which is not happening.hope i am clear.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Aha. So it's this question here: http://www.coderanch.com/t/585066/HTML-CSS-JavaScript/Saving-as-pdf. I will close this thread so that people don't have to run back and forth between two threads on the same topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: client side download
 
Similar Threads
file upload
Printing a server file to client side printer
URGENT ....... synchronization error in session beans
populating drop-down boxes
Print invoice - JSP