Currently I'm using the following code to get content from a jsp to Microsoft Word: <body> <% response.setContentType("application/msword"); response.setContentLength(buff.length()); response.setHeader("Content-Disposition","attachment;filename=foo.doc"); %> <%=buff%> </body> When the user hits the jsp file it asks the user if they want to save or open the file. If the user clicks "Save" the file is saved. However if the user clicks "Open" the user will get prompted again to save or open the file. If they click "Open" for the second time then the file will open. If the user clicks "Save" the prompt window hangs and won't close. Do you know any ways I can fix this to only prompt once? Thanks!