Hi everyone: I have an application in Struts 2.1.8 that has been running for the past two years with no issue. However; recently I have noticed the all file downloads on Firefox and Chrome fails while IE is okay. I know it has something with content-dispositon but I have not been able to fix it. The code is as follows:
public String execute() { Attachment attachment = ticketLocal.findAttachment(getAttachmentId()); setInputStream(new ByteArrayInputStream(attachment.getAttachment())); getServletResponse().setHeader("Content-Disposition", ("attachment; filename=\"" + attachment.getName().trim().replaceAll(" ", "_") + "\"")); return Action.SUCCESS; } Not setting the Content-disposition is header, makes the firefox to prompt for the download but it uses the action for filename ie Ticket.action. Has anyone faced a similar issue or can provide a hint on how to fix the issue --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org