Sometimes we want to generate report to be downloaded by user without save it on the server side. So here is one of what I did for my web application. The process to create the document are do with the download process on client side. For this example, I create xls file using Jxls library. But you will also need apache poi libs and apache common too for this process.
First of all, we need to prepare xls source file that we will use. Mine is like this
Then I create simple form to send the parameter and call the controller. Here my code: Continue reading “How To Automatically Download Generated XLS File on Client Side (Spring MVC + JXLS)”