Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Download in JSP/HTML

 
Neha Andy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Djamel Djem
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic