Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

downloading functionality

 
prabhu kasi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a servlet with some data in it..I have been asked to provide Download functionality for the servlet page . If i click a Download button on the servlet , it should download to the local dir..Can someone tell me if its possible to download the page to a local directory and save it..?
I have been searching in google to get some idea...But no luck..
thx
klv
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What type of data? What file format will it be once downloaded?
 
prabhu kasi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...
thx for the response....The servlet page contains certain report data...I'd have to save that in a txt file , download it and save it on the local directory similar to a getting a pop up box with "save as" once we click download in windows....
thx
klv
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic