You can connect to an FTP server from a JSP, that is no problem. What you
cannot do is have the client open an FTP connection to a server using a JSP.
The client would have to send the data to the JSP server over HTTP, after
which the JSP can send it on over FTP.
JSP always runs on the server, never on the client.
>
> Hey,
>
> I don't think it's possible to connect to a FTP-server from a JSP,
> it might be possible to do it from an applet using a socket. But what
> is definitely possible is to use a MultipartRequest to send the file
> from a HTML-form to another JSP or Servlet.
>
> More information can be found on www.servlets.com
>
> Greetings,
>
> Bart Laeremans
>
>
> > Hi
> >
> > Can any body give me idea about how to open an input stream to a
> > file on
> > client side for uploading that file through JSP on an FTP Server.
> > I just want
> > the code snippet for opening an input stream to a file on client side.
> >
> > Thanks in Advance.
> >
> > Aqeel.