Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Servlet downloading

 
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written a servlet for downloading .doc or .xls files to the client when the client clicks on a link. But, on the client side, the Open/Save dialog box appears twice. I would basically like to know whether the response.addHeader() statement or the response.setContentType() statements result in the Open/Save dialog box appearing. BTW, the link for downloading the Word/Excel files are inside Flash (.swf) files.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Kedar Dravid:
BTW, the link for downloading the Word/Excel files are inside Flash (.swf) files.



Have you tried taking the link out of the swf files to rule out that it could be a flash issue, instead of a problem with your servlet code?
 
Kedar Dravid
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I have solved the problem by commenting the response.setHeader line. But now, the problem is that it is displaying a Page Not Found error on certain client machines, while it downloads properly on other client machines. Wonder if this has got anything to do with IE settings?
 
    Bookmark Topic Watch Topic
  • New Topic