File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "file downloading from the server" Watch "file downloading from the server" New topic

file downloading from the server

arungnair nair

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

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

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

Joined: Jan 10, 2002
Posts: 63873

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

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: file downloading from the server
It's not a secret anymore!