Using an OutputStream from a JSP page
843840Jun 11 2009 — edited Jun 11 2009I have the following situation:
I get a hit from the browser which gets to a JSP page.
In this JSP page I want to generate an Excel file (using jxl) and return it to the browser.
These are the requirements.
I have to get the JSP page and I have to use the response.getOutputStream() to write the Excel file to.
I can't change it.
The data written from jxl to OutputStream is about 3 MB.
I read the API and I know it's not part of the spec.
I also know that Sun ONE 6 should support this anyway. See http://docs.sun.com/source/816-5689-10/api.htm
My question is - how can I get to a JSP page and send the Excel file to the resposne OutputStream?
does anyone have any clever ideas?
Thanks,
Oded