For Programmers: Free Programming Magazines  


Home > Archive > Java Help > August 2005 > image display in jsp









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author image display in jsp
derwood king

2005-08-17, 12:20 pm

Hi,

I'm getting this error when trying to render and display images:
Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:595)

I have radio buttons to dynamically generate and display binary data. The image from the first radio button option displays just fine. When I choose the 2nd one, I get the error. Since I am using JSF along with JSP, the rendering classes are defined in faces-config.xml. Is there any way to find out what the response is (i.e., convert the (HttpServletResponse) response to string and print it so I can see what's going on)? I thought I had a different HttpServletResponse response for each radio button but apparently that's not the case.

Any ideas much appreciated.

TIA, D. K.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com