I have a similar problem in that I need users to be able to download files
from a portlet that exist as byte streams in my app.  I was thinking about
(1) or (3), but it would be tricky to guarantee that the user accessing the
given stream from the servlet was authorized to view the appropriate
portlet.

Any thoughts welcome.

-- Michael

On 2/19/03 1:51 PM, "Mitchell Morris" <[EMAIL PROTECTED]> wrote:

> 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]

Reply via email to