I'm pretty sure you'll find an answer in the archives.  For instance,
there's a bunch of suggestions here:

http://www.nabble.com/Image-from-resource-outside-tomcat-container-to17276444.html#a17276444

-- 
Jeremy Thomerson
http://www.wickettraining.com

On Mon, Jun 23, 2008 at 7:04 PM, Justin Morgan - Logic Sector <
[EMAIL PROTECTED]> wrote:

> In my web app there are a bunch of static image files that live outside the
> WAR in various places on the host's file system (also outside the purview of
> the httpd server too).  To serve up these images within my Wicket app, I've
> been reading their bytes via a File object and returning those bytes to an
> Image via a DynamicImageResource.  As usual, the Image is added to the page
> in the page's constructor.
>
> This works great except for one problem...
>
> Each time the user reloads the page, the HTML <img> gets a new "src"
> attribute because a new DynamicImageResource is created each time the page
> is instantiated.  Thus, the browser can't cache the image.  This is bad
> because I want the image to be cached.
>
> My question is:  How can I provide a non-changing URL for the image
> resource so the image is cacheable?
>
> Many thanks for any help.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to