Best method I found is turbine's screen which extend from raw screen.
Also you must call as /screen/PartDownload not /template/PartDownload
public class PartDownload extends RawScreen {
}
-----Original Message-----
From: Mitchell Morris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 19, 2003 11:52 PM
To: [EMAIL PROTECTED]
Subject: Dynamic image generation
I'm trying to develop a portlet that will display a
dynamically-generated graph of some data, customized using the user's
settings. I have a Struts web-app that will do the whole deal, and I'm
now trying to portlet-enable it, but I'm so new to Jetspeed I'm not sure
I'm heading the correct direction. I assume I would define my portlet as
a VelocityPortlet, with a simple Velocity template consisting of just an
<img> tag. My problem is knowing what to put as the image source.
I tried searching the mailing lists directly and via Google for "dynamic
image", "image generation", "image portlet", "mime portlet", and other
variations. None of which found anyone else talking about dynamic image
generation from within Jetspeed.
I see a few ways to approach the problem:
(1) deploy the generation servlet outside of Jetspeed with a convoluted
URL that encodes all the settings chosen and returns the image data
(2) edit Jetspeed's "web.xml" to add the generation servlet into the
context under some mapping where my servlet and Jetspeed can share
an
HttpSession for IPC
(3) generate random files to litter the filesystem and a cron job to
clean them
up after they get old enough
My preferred solution is a <something> in Jetspeed that can return
MIME-encoded images inline without using the filesystem; that is, a URL
the browser can fetch that returns content-type=image/png but invokes a
class within Jetspeed. Is there anything like this out of the box?
+Mitchell
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]