• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to download tgz file using jsp in browser

 
berender mavi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all

i have a tgz file on the system.Now i want to download it in my jsp page.but i have not any idea how to do it.

currently i am downloading the text file in jsp using following code

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simply create a link to the file.
 
berender mavi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please explain with example
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need an example of a link?

 
berender mavi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it's not working
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
berender mavi wrote:it's not working

If you want help, you'll need to put in more effort than "it's not working".
 
berender mavi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no file can be downloaded by giving it's link.Don't try to make yourself right while you are not correct
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
berender mavi wrote:no file can be downloaded by giving it's link.

Of course it can. How do you think links work? If you give the proper URL to the file, clicking on it will transfer it to the browser.

Are you perhaps confusing downloading with uploading?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!