• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

File Download in JSP/HTML

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I would like to know how to download a file from an HTML/JSP. If I have a link tag <A HREF=a.html>, and I click it, a.html opens in browser's window. The only way to download it is by right-clicking it and use browser's save option. how can i download a.html by simple clicking? (I have seen this feature in free internet drive services)
regards
Neha
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
try to use
<from action="Your_program ">
<input type="file" name="uploadFile">
</form>
By this way you can upload file and get it by your program.
Djamel.
*****************************************************************

Originally posted by Neha Andy:
Hi,
I would like to know how to download a file from an HTML/JSP. If I have a link tag <A HREF=a.html>, and I click it, a.html opens in browser's window. The only way to download it is by right-clicking it and use browser's save option. how can i download a.html by simple clicking? (I have seen this feature in free internet drive services)
regards
Neha


 
Neha Andy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Djamel
I wanted to know how to download a file from an http server to desktop. the suggestion that you made is actually the other way: desktop(PC) -> server. anyway, thanks a lot...
Neha
 
What's wrong? Where are you going? Stop! Read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic