Hi, 

Both of your suggestions work, thanks, I was doing it hard way.
btw, what's the difference:  ${asset:context:img/ok0.gif} and img/ok0.gif

A.C.


Filip S. Adamsen-2 wrote:
> 
> You can also specify assets inline using the asset prefix, that is:
> 
>     ${asset:context:img/ok0.gif} 
> 
> Works like a charm.
> 
> Robin Helgelin skrev:
>> On 8/30/07, Erik Vullings <[EMAIL PROTECTED]> wrote:
>>> Hi Angelo,
>>>
>>> Can't you just use (in the HTML part of your page):
>>>  img/ok0.gif 
>>>
>>> and put the ok0.gif image in the src/main/webapp/img folder.
>> 
>> You could, but then you would get a wrong url when you are using an
>> action or something on your page, such as /mypage/action1/action2,
>> then the image would be /mypage/action1/img/ok0.gif which is
>> non-existing.
>> 
>> The asset service takes care of all this for you.
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Handling-of-images-tf4352985.html#a12404597
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