haim wrote:
> HI.
> 
> Please forgive me if this is a stupid question , I failed
> to find an answer for this issue.
> 
> How do I place a message into an attribute of a taglib.
> For example lets assume that I want to place the src of
> an image from a recourse bundle. Using the <html:img />
> tag. 
> 
> I thought that this should work
> 
> <html:img src='<bean:message key="my.image"/>'/>
> 
> But i get the <bean:message key="my.image"/> as string
> and not as a the message itself.

Use the srcKey attribute on the <html:img /> tag to specify the property 
in your resource bundle that you want to use:

http://struts.apache.org/userGuide/struts-html.html#img

<html:img srcKey="my.image" />

Cheers,

-- 
Bob Arnott



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to