My problem is when I select the "Generate Spreadsheet" (which submits another JSP containing the HSSF code), the spreadsheet is generated but the Excel dialog box (open, save, close, cancel) appears twice. When I select "open" (twice) the spreadsheet comes up correctly. When I close the spreadsheet and click on the "Return to Criteria Selection" hyperlink, the spreadsheets generates again. It seems the "Generate Spreadsheet" routine has taken control. (I can return to the previous screen by hitting the BACK button).