This might be a good case to write a custom tag.
-Original Message-
From: Daniel Watrous [mailto:[EMAIL PROTECTED]
Sent: Monday, April 18, 2005 5:20 PM
To: user@struts.apache.org
Subject: binary view
I have an action in my application that generates a PNG image from
some text stored in
Why even bother with a jsp?
You have the response object in your action, just start spewing data into
it.
Larry
On 4/18/05, Daniel Watrous <[EMAIL PROTECTED]> wrote:
>
> I have an action in my application that generates a PNG image from
> some text stored in a session object. My view is very s
The problem is that you're opening the output stream at the beginning of
your jsp and then reopening the output stream by calling
response.getOutputStream(). I believe you can call response.reset() to
fix this problem:
<%
response.reset();
response.setContentType("image/png");
java.io.OutputStream
3 matches
Mail list logo