• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

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
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic