RE: Downloading file rendered in JSP

2008-04-08 Thread Brad A Cupit
Mailing List Subject: RE: Downloading file rendered in JSP Thanks for that. I actually just needed to implement the ServletResponseAware interface to access the servlet response properly. Trying to set those in the JSP (through a scriplet) didn't work, but indeed doing it in the action is

RE: Downloading file rendered in JSP

2008-04-08 Thread David Loup
ailto:[EMAIL PROTECTED] Sent: 08 April 2008 14:25 To: Struts Users Mailing List Subject: RE: Downloading file rendered in JSP To set the download file name, in addition to the "text/csv" mime type (which you already have set), write the following java code in your Action or (if necessary)

RE: Downloading file rendered in JSP

2008-04-08 Thread Brad A Cupit
To set the download file name, in addition to the "text/csv" mime type (which you already have set), write the following java code in your Action or (if necessary) as Java in your JSP: response.setHeader("Content-disposition", "attachment; filename=" + CSV_FILE_NAME); where CSV_FILE_NAME is the n