This example demonstrates how to create and export an Excel spreadsheet using Apache POI. Follow the link below to export the spreadsheet.

$export

Note in the Page Java how the Page path is set to null after the Excel spreadsheet has been written to the response. This tells the ClickServlet that the page has completed its rendering, and the page template should not be rendered.