On Fri, 5 Jul 2002 [EMAIL PROTECTED] wrote:

> Date: Fri, 5 Jul 2002 15:22:20 +0200
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: AW: Displaying a dynamically created Image.
>
> How do I include this into some JSP/HTML?

Actually, you cannot (because you cannot mix text and binary output in a
single response) -- but you don't really want to either :-).

What you want to include is an <html:img> tag with a "src" URL that points
back at the action used to create the dynamic image.  Something like:

  <html:img src="/myapp/generateImage.do"/>

where "/generateImage" is the path of the Action that creates the dynamic
image.  The browser will generate a second request to get this image
(typically simultaneous with the request that is downloading the HTML of
the response page itself), so be sure you have programmed any session
attributes in a thread-safe manner.

> Cause I've got some buttons and inputfields for
> navigating through my image (Timeline).
>

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to