This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes file downloading from the server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "file downloading from the server" Watch "file downloading from the server" New topic
Author

file downloading from the server

arungnair nair
Greenhorn

Joined: May 05, 2005
Posts: 3
i have to download a file from the server which is csv file but my client needs not to display the dialog box during the download how can it be done?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If the client has an application registered with the browser to handle csv files (like Excel) you can use the "inline" keyword with the Content-Disposition tag to have the browser open the document in an embedded instance of that application.

If the browser doesn't have anything registered, then the only thing it can do is prompt the user for more instruction.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
arungnair nair
Greenhorn

Joined: May 05, 2005
Posts: 3
Thank you.. i've tried it but what actually i wanted was to save the file in the client's machine .but that seems impossible with my knowledge in java.Is there any way?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60808
    
  65

Without their knowledge? That can't be done for obvious security purposes.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: file downloading from the server
 
Similar Threads
DownLoading a PDF File
Download a file from the server!!
how to print server file from client side
down load file from server
downloading