hi Nagesh ,
Thanks for yer advices.
By the way, did ya know how to display upload status, I'm on finding the way
to display it, or any way to change upload screen to another waiting
interface (ex: waiting on uploading ) but I can't do it now. Did ya know?
(www.freedrive.com can do this)

----- Original Message -----
From: "200697-Nagesh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 22, 2001 6:01 PM
Subject: Re: use multipart/form-data to upload in servlet??


> Hi
> I am Nagesh
> The same problem occured to me just a few days back when i was
> developing a site with this feature.
> The solution is
> 1.Download a jar file from jspsmart.com
> 2.Put the jar file to the lib dir of ur server or somewhere in the
> classpath
> 3.Import the package into ur class with an import statement.
> 4.Refer the documentation that comes with the jar file and code
> accordingly using their classes .
>
> The contents of the jar also contains a webapplication ie a folder with
> all relevent files and some examples.
> The examples are self explinatory and easy to understand.
> Try them it is working fine for me.
> regards
>
> Nagesh Babu S
> jr Software Consultant.
> Infosys Technologies Ltd
> Bangalore
> India
>
>
>
> -----Original Message-----
> From: rod [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 22, 2001 2:35 PM
> To: [EMAIL PROTECTED]
> Subject: use multipart/form-data to upload in servlet??
>
>
> hi,
>  I have a problem with form "multipart/form-data" with POST action
>  any time I use that form with an input type =file, and post a file with
> size about 650M
> the servlet freeze to response any one can give me the
> instruction??thanks
> in advance
> my form:
>
> <form method="post"  enctype="multipart/form-data"
> action="/servlets/testupload"  >
> <input type="file" name="file1">
> <input type="submit" value="upload">
> </form>
> my servlet:
>
> import javax.servlet.*;
> import javax.servlet.http.*;
> import java.io.*;
> import java.util.*;
>
> public class testupload extends HttpServlet
> {
>  public void doPost (HttpServletRequest request, HttpServletResponse
> response) throws ServletException,IOException
>  {
>
>    response.setContentType("text/html");
>    PrintWriter out=response.getWriter();
>    int up_size=(int)request.getContentLength();
>    out.println("Size upload "+up_size);
>    out.flush();
>    out.close();
>  }
>
> }
>
> ________________________________________________________________________
> ___
> 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

Reply via email to