This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
    Bookmark Topic Watch Topic
  • New Topic

Download a file from java

 
ramranga Kumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 64608
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic