I have a JSP file which creates an Excel document.
I want to dynamically set the name of the file to be downloaded.
This is how I set the file name to "test.xsl":
<% response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition","attachment; filename=" + "test.xsl" );
%>
How can I set the file name to be test-${today's date}.xsl ( i.e. test-20100805.xsl ) ?