Hi All, I´m trying to download a pdf file using a Struts action. I don't have the file in my file system, an EJB is returning the file image as a ByteArray.
I´m already sending a mime type that´s unknown by the browser forcing a download reaction and sending the file name as header property like in the following lines: response.setContentType("application/x-download"); response.setHeader("Content-disposition", "attachment; filename=" + resultVo.getFileName()); The problem is that when the broser receives the response it´s prompting the action name not the file name. What are the alternatives to this solution? Thanks in advance, Rodrigo. ***** Internet E-mail Confidentiality Footer ***** "Esta mensagem pode conter informações privilegiadas e/ou confidenciais de propriedades da BCP Telecomunicações. Caso voce não seja o destinatário ou pessoa autorizada a recebe-la não poderá utiliza-la de forma alguma. Cópia, revelação ou quaisquer outras ações baseadas nestas informações não são autorizadas. Se voce recebeu esta mensagem de forma equivocada, por favor informe o emissor imediatamente respondendo a este email e em seguida eliminando-o. Agradecemos sua cooperação." "This message may contain confidential and/or privileged information belong to BCP Telecomunications. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation." --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]