public void doExport(OutputStream out) throws IOException, JspException
{
try
{
HSSFWorkbook wb = new HSSFWorkbook();
HssfTableWriter writer = getHssfTableWriter(wb);
writer.setSetSheetName("Export");
writer.writeTable(this.model, "-1");
boolean hasGroups = false;
for (HeaderCell cell : this.model.getHeaderCellList())
{
if (cell.getGroup() > 0)
{
hasGroups = true;
cell.setGroup(0);
}
}
if (hasGroups)
{
writer.setSetSheetName("Data");
model.reset();
writer.writeTable(this.model, "-1");
}
wb.write(out);
}
catch (Exception e)
{