Download using response.getOutputStream() wont work? urgent!
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Aaron_Ritchie
Posted On:   Monday, July 25, 2005 12:44 PM

Hi, I'm making a download site using struts 1.1. I have a jsp page that calls a servlet via a forward. In the servlet, the intent is to download a file. I am using IBM websphere.


I get a "java.lang.IllegalStateException: OutputStream already obtained" error everytime I try to run this at the response.getOutputStream() line.

I really need this code to work and can use some help!! Thanks!

Re: Download using response.getOutputStream() wont work? urgent!

Posted By:   Christopher_Koenigsberg  
Posted On:   Monday, July 25, 2005 09:25 PM

make sure the forward comes before any kind of output, even anything that will set a response header.
About | Sitemap | Contact