----- Original Message -----
From: "Mailing List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>


> I would like to achieve the following.  I would like
> to send the contents of an XML file from one servlet
> on one server in USA to another servlet in another
> server in Canada and that should then be downloaded
> into a local file.  Any ideas on what I should do?

What is required is
1. Upload the file to the first server.
2. From the first server, contact the second server and send the file to the
second server.
3. At the second server, receive the request and save the file.
4. Send acknowledgement from the second server to the first server .
5. send the acknowledgement page from the first server to the browser.


Now as per what you have done.

1. I am not sure if the method you use for uploading is correct. I have
always used multi part for file uploading.
2. This step is not there in your code. You are sending the file back to the
browser only.  You need to use java.net.URL and java.net.URLConnection in
the Send.java class to contact the servlet on the second server and sending
the file to it.
3. This step seems to be fine.
4. This also seems to be fine.
5. You seem to be writing the file back to the browser from the first
server. Is this what you want for acknowledgement. This should not be a
problem.


Regds,
Gokul


>
> David Gowe
>

___________________________________________________________________________
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