And a small add-on: you might try "inline" instead of "attachment", too -- that's probably what most web browsers default to when you completely omit the disposition-type.
Michael > you might try omitting the "attachment" in the content disposition: > > response.setHeader("Content-Disposition", "filename=yourFileName"); [...] > > >Set the HTTP Header "Content-Disposition" > > > > > >response.setHeader("Content-Disposition", > > >"attachment;filename=yourFileName"); > > > > [...] > > Thankyou, that has done the trick. > > > > Although the file is saved with the intended file name the download > > intercepting window still comes up with the servlets name ie > > > > 'You are downloading the file MyServlet from Localhost' > > > > Anyone know the way round that one? > > > > I suppose you could sendRedirect to a servlet mapped as > > /download/* and then > > call it via download/myFilename but that's a terrible solution!! > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html