Código PHP:
       public ActionForward exportExcel(ActionMapping mapping, ActionForm form,
          HttpServletRequest request, HttpServletResponse response)
            throws Exception {
 
 
        UserForm userForm = (UserForm) form;
        ExcelCreator excelCreator = new ExcelCreator();
        HSSFWorkbook workbook =                                                          excelCreator.createWorkbook(userForm.getUserList());
        response.setHeader("Content-Disposition", "attachment; filename=UserDetails.xls");
        ServletOutputStream out = response.getOutputStream();
        workbook.write(out);
        out.flush();
        out.close(); 
    Si existe alguna forma??.
Gracias y saludos.
 
 


