Hi Angelo,

Can't you just use (in the HTML part of your page):
<img src="img/ok0.gif" title="ok0" height="28" width="37"/>

and put the ok0.gif image in the src/main/webapp/img folder.

Cheers
Erik


On 8/30/07, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Everytime I need to display an image, I have to do something like this:
>
>     @Inject
>     @Path("context:/images/logo3.jpg")
>
>     private Asset logo;
>
>     public Asset getLogo() {
>         return logo;
>     }
>
>    then in the template:
>
>     ${logo}
>
> Is there an easier way? example, I can directly refer to the image without
> creating a function?
>
> Thanks,
>
> A.C.
>
> --
> View this message in context:
> http://www.nabble.com/T5%3A-Handling-of-images-tf4352985.html#a12403455
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to