Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using an OutputStream from a JSP page

843840Jun 11 2009 — edited Jun 11 2009
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 9 2009
Added on Jun 11 2009
5 comments
554 views