Thanks in advance,
you can go head with display tag
this link might be useful. export to excel
xsunil kumar wrote:Bear, you are displaying the result in JSP page. It means that you are already records available in request/ session.
No. The request is long gone by the time the page is displayed in the browser, and no data is automatically stored in the session.
The best solution is to have a servlet that reads the same data and formats it, not as HTML, but as a format that Excel understands.
Bear Bibeault wrote:The best solution is to have a servlet that reads the same data and formats it, not as HTML, but as a format that Excel understands.
I'd say that's debatable; storing the data in the session can work well. That's what the DisplayTag library suggested previously does, which is indeed worth a look if the data is both to be displayed as HTML and downloaded as XLS.
Caching the data in the session may be a viable path depending upon the expected usage patterns of the application
This gives me an error in the webpage when i click save as excel button, the error is detailsTable is undefined, Please can anyone help me, I am stuck here.
Thanks in advance.