Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes Servlet - Standalone App communication (file transer) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet - Standalone App communication (file transer)" Watch "Servlet - Standalone App communication (file transer)" New topic
Author

Servlet - Standalone App communication (file transer)

Arvind Subramanian
Ranch Hand

Joined: Jul 25, 2008
Posts: 84
i want to transer the file from my web server(tomcat) to client machine which request. The request will not be made from the browser but it will be made from the jar (standalone java application) can anyone help me how to handle it?


"Many of lifes failure are people who did not realize how close they were to success when they gave up."
-Thomas Edison
~ar~stutzen~
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Which part are you stuck on?
The servlet that delivers the file or the client app that requests it?

Depending on your needs you might not even need a servlet on the server side.
If you put the file in a web accessible directory on your app/web server your client should be able to pull it down as it would any web page.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Arvind Subramanian
Ranch Hand

Joined: Jul 25, 2008
Posts: 84
Ben , reason why we need servlet is , it is not static files as the file was generated on demand based on request from the Standalone app. The part i got struck was clent side.

The main thing to consider is it is not single file but multiple files, but i planned to give single request and get series of file continously . is it possible? if not please tell how to send the date from servlet to client.

i need the transport part. Is it like writing the data to stream and reading back the stream to files or any other way?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Servlet - Standalone App communication (file transer)
 
Similar Threads
server to server call
One or Two Jars?
Calling servlets
NX:Contractors database location
download