File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes to provide download link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "to provide download link" Watch "to provide download link" New topic

to provide download link

ramranga Kumar

Joined: Jul 21, 2006
Posts: 5
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]

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

Can u plz help ?

Thank You
Waiting for reply.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63837

ramranga Kumar, JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

Please read this for more information.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: to provide download link
jQuery in Action, 3rd edition