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
IS -Original Message- From: David Loup [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 7:42 AM To: user@struts.apache.org Subject: Downloading file rendered in JSP Hi, I'm trying to make one of my pages downloadable as a CSV file. Currently my XML is configured like this:

Downloading file rendered in JSP

2008-04-08 Thread David Loup
Hi, I'm trying to make one of my pages downloadable as a CSV file. Currently my XML is configured like this: /pages/download.jsp And /pages/download.jsp renders the list as a CSV. I have changed the content type in the CSV: <%@ page contentType="text/csv" %>