Private assets are found on the classpath rather than in the web application
context.  Did you try moving your image file out of WEB-INF?  The servlet
container is not supposed to "serve up" files from within WEB-INF.

-----Original Message-----
From: Łukasz Pachciarek [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 4:34 AM
To: Tapestry users
Subject: Re: Image ?

Łukasz Pachciarek wrote:

> Hi
> I want to insert image into web page this way:
> in html template :
> <img jwcid="@Image" image="ognl:assets.pg"/>
> and in page spec
> <context-asset name="pg" path="WEB-INF/pic/test.png"/>
> and finally I have this in browser:
> Unable to locate asset "pg" of component Menu as 
> context:/WEB-INF/pic/test.png.
> file exists in filesystem.
>
> thanks
>
Hello
I used <private-asset> element instead of <context-asset> in my .page
and pictures placed in my java package, now it's working...
If someone has any idea inform me please..

-- 
Łukasz Pachciarek



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

  • Re: Image ? Łukasz Pachciarek
    • RE: Image ? James Carman

Reply via email to