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