Hello, If you can please assist me, I have a public class CSROrderReportLookup extends DynamoServlet. Even when I change the response to CSV the
string gets printed to the page instead of prompting for a download. The code I am using is as follows:
PrintWriter fileWriter = null;
response.setContentType("application/csv");
response.setHeader("content-disposition", "filename=test.csv");
fileWriter = response.getWriter();
fileWriter.append("Hello");
fileWriter.flush();
I have a working example of another page that extends GenericFormHandler instead of DynamoServlet which creates a download instead of printing to the page. But I would like to do it from DynamoServlet if at all possible. Can you give me an example of what I may need to change to get it to work?
Thanks,
Dylan