• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to download files from the server to the client's local m/c without user interven  RSS feed

 
Venkatesh Thiruvarul
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


How to download a file from the server to the client's local machine in a particular folder without users intervention ie. 'Save As" prompt of the browser should be avoided and if the client clicks on "Download" button, the file should get automaticaly downloaded to say, "c:/reports/' on his/her local machine. This is for Java based web appliaction.

Is it possible to use Applets and Java Web Start(JNLP) to fetch the files from server to client's local.

Essentialy it is server-push is it not?. It implies that Server has to have Write permission on the client's m/c. How can this be accomplished programaticaly in Java/JSP etc.


Thanks & Regards

T.Venkatesh
t.venkatesh@india.com
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't post the same question to multiple forums. I've deleted the other copy.

What is a "m/c"? "Microcomputer?" I wish people wouldn't use these jargony abbreviations -- it's hard enough for us all to understand each other. What's wrong with simply saying "computer"?

In any case, you won't be able to do this without using signed code on the desktop -- i.e., an applet or JWS application. Even then, the container is going to ask the user if the code is allowed to get write permission to the given location on the local disk -- at least once, anyway. You have to realize that what you're proposing is, 99% of the time, going to be considered a hostile act.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!