wood burning stoves 2.0*
The moose likes Servlets and the fly likes File Download in JSP/HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "File Download in JSP/HTML" Watch "File Download in JSP/HTML" New topic
Author

File Download in JSP/HTML

Neha Andy
Greenhorn

Joined: May 11, 2001
Posts: 2
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

Joined: May 12, 2001
Posts: 3
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

Joined: May 11, 2001
Posts: 2
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: File Download in JSP/HTML
 
Similar Threads
Submit Button in JSP Page Scrolls Frame!
server side includes
Table in Javascript & HTML
Closing parents parent html file
download zip in jsp