struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KamHon Eng <kam...@gmail.com>
Subject Re: textfield label localized
Date Sat, 28 Nov 2009 09:41:32 GMT
<s:textfield label="%{getText('label.name')}" name="user.name"
maxlength="35" theme="xhtml"/>
or
<s:textfield key="label.name" name="user.name" maxlength="35" theme="xhtml"/>

shoud working

On Sat, Nov 28, 2009 at 4:53 AM,  <mailtolouis2020-struts@yahoo.com> wrote:
> Hi,
>
> Can someone tell me how to make the label use my resource bundle value? I've tried this
> <s:textfield label="label.name" name="user.name" maxlength="35" theme="xhtml"/>
> and
> <s:textfield label="%{getText(label.name)}" name="user.name" maxlength="35" theme="xhtml"/>
> both are not working.
>
> But this work:
> <s:label key="label.name"/>
>
> in my resource bundle properties file
> I've this
> label.name = Name
>
> THanks
>
> L.V
>



-- 
Best Regard,

Kam Hon

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message