Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upload file

 
Smita Chopra
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using servlets and JSP on tomcat. Is there any tag in HTML to upload and download files.
Thanks
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For downloading, no special tag is needed - just use a regular link to the file. For uploading check out Jakarta Commons FileUpload (http://jakarta.apache.org/commons/fileupload/). It comes with examples.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Download is easy - just provide a link to the file. Upload you use a form with an enctype of "multipart/form-data". Have a search through this forum, we've talked about this many times before. You should be able to find tips/examples.
 
kirtikumar patel
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi! smita
No any tag for direcly used for file upload . if you want you have to implement logic for it.

if you want to any help from me ,made email on this id: kirti_engineer@rediffmail.com

regards
kirti
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at http://jakarta.apache.org/commons/fileupload
There are instructions and sample code there as well.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Straight to Jakarta Commons Fileupload User Guide
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic