Upload files from HTML & Accept them in Servlet
1 posts in topic
Flat View  Flat View

Posted By:   Edison_T
Posted On:   Wednesday, September 25, 2002 04:04 PM

Hi All,
I have a HTML page ( or can be a JSP also ) with a functionality to allow user to upload 2 files from his machine to the server. ( from client machine to app server).
The Action - Submit of the Form tag on the page should point to a Servlet and my servlet should be able to save the uploaded files onto the server. if possible check for viruses before saving onto the file system. Is there any sample code ( for html / jsp and Servlet ) anywhere or can someone put a small piece of code here.
Thanks In Advance
- shailesh

Re: Upload files from HTML & Accept them in Servlet

Posted By:   Sebastien_Meric  
Posted On:   Sunday, September 29, 2002 01:35 AM


Oreilly in Java Servlet Programming shows a sample code for uploading files and gives a complete class code "ready to use". You may find the book at
Java Servlet Programming and you should find the sample code online if you hang around.



About | Sitemap | Contact