response.setHeader("Content-disposition", "attachment; filename=" + "xpto" + ".xls");  ServletOutputStream writer = response.getOutputStream();
response.setHeader("Content-disposition", "attachment; filename=" + filename + ".xls");  ServletOutputStream writer = response.getOutputStream();
    public ActionForward exportToExcel(ActionMapping mapping, ActionForm actionForm,            HttpServletRequest request, HttpServletResponse response) throws FenixServiceException, FenixFilterException{                DynaActionForm dynaActionForm = (DynaActionForm) actionForm;        String departmentID = (String) dynaActionForm.get("department");        String executionPeriodID = (String) dynaActionForm.get("executionPeriod");                            List<SummariesControlElementDTO> list = getListing(request, departmentID, executionPeriodID);                try {            response.setContentType("application/vnd.ms-excel");            response.setHeader("Content-disposition", "attachment; filename=" + "xpto" + ".xls");                        ServletOutputStream writer = response.getOutputStream();                        exportToXls(list, writer);                        writer.flush();                          response.flushBuffer();                } catch (IOException e) {            throw new FenixServiceException();                   }                return null;    }