RE: Problem writting to the output stream within an action

2006-08-13 Thread David Friedman
Yes. Just return or return null instead of an ActionForward. Don't look for a mapping using mapping.findforward(null). As a side note, you have a lot of nested "try/catch" and "if" statements which a) can be difficult to read (I had trouble) and the nested try/catches can cause performance issue

Problem writting to the output stream within an action

2006-08-13 Thread Bart Busschots
Hi, I'm trying to write a struts action that will render a PDF rather than some JSP. My code is below. The problem is that the line to get the output stream throws an exception: java.lang.IllegalStateException: getOutputStream() has already been called for this response org.apache.c