JXL JSP EXCEL MULTIPLE INSTANCES
Posted on 2007-07-23
I am currently using jexcel api 2.6.4 to output a database query to an excel file from a jsp webpage. From a jsp file, I call a java class that does the following:
response.setHeader ("Content-Disposition", "attachment;filename=fileName");
ServletOutputStream sos = response.getOutputStream();
FileInputStream file = new FileInputStream(theFile);
and I plug the input stream to the servlet output stream. I need a user to be able to run multiple searches and produce different excel worksheets but the problem is that if a user has a previously generated output file open, running the webpage search again just throws focus to that previously generated report. What's going on?