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 Java in General and the fly likes Download a file from java 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 » Java in General
Reply locked New topic
Author

Download a file from java

ramranga Kumar
Greenhorn

Joined: Jul 21, 2006
Posts: 5
Hi
I gave the following in my jsp page

<a href="log.txt"> Click Here </a>

When I click the link "Click Here" the file log.txt is opened in the IE browser itself... But i want it to show the download dialog box with the open save buttons [which we can see while we download attachments in yahoo]

In java do we have something like response.setContent & response.write(
to download file.... If so please help me with your idea.

I also tried with Mozilla. But I got the same result as in IE.

Thank You
Waiting for reply.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
In Opera, a right-click instead of a left click gets me a list of options, including save-as.
Bill
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.

Especially do not post in appropriate forums. This forum is for Advanced Java questions which your issue is most assuredly not.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
jQuery in Action, 2nd edition
 
subject: Download a file from java
 
Similar Threads
Windows 98 Oracle classpath
file download dialog box - help me out
XML Info Database Help
to provide download link
Error in building Installation for my project