upload files using JSP and web server tomcat 4.1

hello I have a web server running on Tomcat. Can you help me of how to upload files to web server using JSP.I am running tomcat 4.1 version web server.Thanx in advance
[202 byte] By [deepak@stara] at [2007-11-26 18:37:36]
# 1

You use an <input type="file"> on a web page.

Your form has to have the following attributes:

method="post"

enctype="multipart/form-data"

For the server end of things it is easiest to use a pre-written library.

Recommended libraries:

- [url http://jakarta.apache.org/commons/fileupload] Commons Fileupload[/url]

- [url http://www.servlets.com/cos/]com.oreilly.servlet[/url]

evnafetsa at 2007-7-9 6:11:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...