click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r737341 - /incubator/click/trunk/click/examples/src/org/apache/click/examples/page/general/ExcelExportPage.java
Date Sat, 24 Jan 2009 12:04:45 GMT
Author: sabob
Date: Sat Jan 24 12:04:44 2009
New Revision: 737341

URL: http://svn.apache.org/viewvc?rev=737341&view=rev
Log:
added the report name to response header

Modified:
    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/general/ExcelExportPage.java

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/general/ExcelExportPage.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/general/ExcelExportPage.java?rev=737341&r1=737340&r2=737341&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/general/ExcelExportPage.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/general/ExcelExportPage.java
Sat Jan 24 12:04:44 2009
@@ -55,6 +55,7 @@
 
         // Set response headers
         String mimeType = ClickUtils.getMimeType(".xls");
+        response.setHeader("Content-Disposition", "attachment; filename=\"report.xls\"");
         response.setContentType(mimeType);
         response.setHeader("Pragma", "no-cache");
 



Mime
View raw message