For this you'll need to use enctype=multipart/form-data in the form tag and
then handle a multipart request.
You can use the com.oreilly.servlet.MultipartRequest package which is
available at www.servlets.com
----- Original Message -----
From: Dharmendra Yadav <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 20, 2000 9:13 AM
Subject: Uploading a file through form created using servlet.
> hi ,
> I have a form created through servlet. I'm using input "type=file " as
> item in form.
>
> can someone tell me the code ( or java classes to use ) to upload a
file
> through servlet and and place it on a specific location on the server.
>
>
>
> thanks guys
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html