Posted By

udayrayala on 12/30/09


Tagged

java


Versions (?)

new snipplr


 / Published in: Java
 

  1. String csvFileName = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()) + "_sla.csv";
  2. response.setContentType("text/csv");
  3. response.addHeader("Content-Disposition","attachment;filename="+csvFileName);
  4. PrintWriter writer = response.getWriter();
  5. writer.println(AUDIT_CSV_HEADER);

Report this snippet  

You need to login to post a comment.