Re: textfield label localized

2009-11-28 Thread KamHon Eng
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-str...@yahoo.com wrote: Hi, Can someone tell me how to make the label use

Re: textfield label localized

2009-11-28 Thread mailtolouis2020-struts
Hi, Thanks, its work now by using key. Regards LV From: Saeed Iqbal saee...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Sat, November 28, 2009 1:54:48 AM Subject: Re: textfield label localized There are 2 ways to go about this 1

Re: textfield label localized

2009-11-28 Thread mailtolouis2020-struts
Hi, Thanks for the answer, both are working now. Regards LV From: KamHon Eng kam...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Sat, November 28, 2009 9:41:32 AM Subject: Re: textfield label localized s:textfield label=%{getText

Re: textfield label localized

2009-11-28 Thread Saeed Iqbal
, November 28, 2009 9:41:32 AM Subject: Re: textfield label localized 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-str

textfield label localized

2009-11-27 Thread mailtolouis2020-struts
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

Re: textfield label localized

2009-11-27 Thread Saeed Iqbal
There are 2 ways to go about this 1) within Struts tags use key= where your i8nl key should go in. But for that to work your struts needs to know where all the i8nl values are located. Define a constant for it in struts.xml or create a struts.properties to contain this