HI
Well ,how do I know which is the file that I want to get? Assume that I am
uploading a file from my client .My html goes like this
<input type = file name="Test">
Now when I submit my form,how will I retrieve the file in my servlet...Colud
anyone attach a piece of code that does it....
bharath
jeyavel wrote:
> Hi bharathwaj,
>
> Use HttpServletRequest.getInputStream() to retreive the HTML form contents.
>
> jeyavel.
>
> ----- Original Message -----
> From: bharathwaj <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, November 22, 1999 12:36 PM
> Subject: How to get a file from html in Servlets?
>
> > Hi
> > I have a problem in hand.I have to upload a file from the client side to
> > the server side.I am using the Html's input type as file.I have also set
> > the enctype in the form tag.Now how will I get the file that has been
> > uploaded in the client from my servlets?
> > Please reply,
> > Thanx
> > bharath
> >
> >
> ___________________________________________________________________________
> > 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
___________________________________________________________________________
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