Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet downloading

 
Kedar Dravid
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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic