details: http://code.openbravo.com/erp/devel/main/rev/9f9aeec6bd30 changeset: 3536:9f9aeec6bd30 user: Iván Perdomo <ivan.perdomo <at> openbravo.com> date: Fri Apr 03 18:37:37 2009 +0200 summary: Fixes issue 8179: Adding a html file extension. The response contains a html with a download report code
diffstat: src/org/openbravo/base/secureApp/HttpSecureAppServlet.java | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diffs (12 lines): diff -r 0c707de48a8f -r 9f9aeec6bd30 src/org/openbravo/base/secureApp/HttpSecureAppServlet.java --- a/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java Fri Apr 03 18:03:30 2009 +0200 +++ b/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java Fri Apr 03 18:37:37 2009 +0200 @@ -1039,6 +1039,8 @@ reportId = UUID.randomUUID(); saveReport(variables, jasperPrint, exportParameters, strFileName + "-" + (reportId) + "." + strOutputType); + response.setHeader("Content-disposition", "inline" + "; filename=" + strFileName + "-" + + (reportId) + ".html"); printPagePopUpDownload(response.getOutputStream(), strFileName + "-" + (reportId) + "." + strOutputType); } else { ------------------------------------------------------------------------------ _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits