Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
9.7k views
in Java FTP by
Has anyone implemented these classes using a JSP (ie, a web based implementation of edtftp)?

Can anyone give me some examples or pointers? Thanks. I am trying to help a remote user download some files from our server and i have been unsuccessfull...I tried to simulate downloading the files using a JSP to my m/c from the remote server, it tells me that the files are downloaded, but i cant seem to find where they are ? :?:

Help Much Appreciated :?

5 Answers

0 votes
by (162k points)
Yes, many people have done this. Best to supply an absolute path to the get() method (prepended to each file name) so you can specify exactly where the files are to go.

Has anyone implemented these classes using a JSP (ie, a web based implementation of edtftp)?

Can anyone give me some examples or pointers? Thanks. I am trying to help a remote user download some files from our server and i have been unsuccessfull...I tried to simulate downloading the files using a JSP to my m/c from the remote server, it tells me that the files are downloaded, but i cant seem to find where they are ? :?:

Help Much Appreciated :?
0 votes
by
Can you please provide me with some examples?

Here is my scenario and i have no idea as to what is going wrong:

I have a server on which i have some files that needs to be downloaded by a client on a remote m/c . I have the edtFTP jar file and a class file that basically instantiates the FTPCLIENT and returns a byte stream of the needed file. This class is being instantiated on a JSP and the byte stream is retrieved on the jsp.

Can edtFTP be used like this? Can some one please provide with some examples
0 votes
by (162k points)
Sorry, we don't have any JSP examples.

The best thing to do would be to start simple:

Write a JSP that downloads a text file and displays its contents. If you can get this working, it shouldn't be difficult to do what you want, below, which seems a reasonable thing to do.

Can you please provide me with some examples?

Here is my scenario and i have no idea as to what is going wrong:

I have a server on which i have some files that needs to be downloaded by a client on a remote m/c . I have the edtFTP jar file and a class file that basically instantiates the FTPCLIENT and returns a byte stream of the needed file. This class is being instantiated on a JSP and the byte stream is retrieved on the jsp.

Can edtFTP be used like this? Can some one please provide with some examples
0 votes
by
I already wrote a JSP that resides on the server along with the files that need to be FTP'ed to the client. But since the java class is instantiated on the server inside the JSP, edtFTP thinks that the server itself is the client. How do i make it understand that the remote computer is the client?

Totally confused :?:
0 votes
by (162k points)
If the files are on the same server as the JSP, you don't need edtFTP at all. The JSP can be used to serve the files up to the client without any edtFTP involvement.

See any book on JSPs for how to do this.

I already wrote a JSP that resides on the server along with the files that need to be FTP'ed to the client. But since the java class is instantiated on the server inside the JSP, edtFTP thinks that the server itself is the client. How do i make it understand that the remote computer is the client?

Totally confused :?:

Categories

...