Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Download a file from java

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
In Opera, a right-click instead of a left click gets me a list of options, including save-as.
Bill
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic