File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Download

 
Eibhlin Reid
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I have never used servlets before but I was wondering if there is a way to use them to allow a user of my program to download an XML file off of a server. I know I could do a website using EJBs (which I have some experience of) but I would just rather the user click a button on the application to start the download instead of having to go to a website to download the file.

Is this knid of thing easy to do? All help greatly appreciated!

Thanks in advance!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A servlet (as it's name suggests) a server component. It sits on the server and waits for a request.

The request can come from a browser or from any application that can generate an HTTP request.

What type of app are you writing?
 
Eibhlin Reid
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm writing an application to remove adware/spyware from a windows machine. I would like users to be able to download updates to the definitions file, but wanted something thats quick and easy for both them and me!!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HttpClient classes can be used to emulate a browser making a request.
See this Jakarta commons project page.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic