You don't; you use it where you're using <bean:write> right now.

David






From: "Jana Navaneethan" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Internationalization of checkbox label
Date: Wed, 4 Dec 2002 16:14:46 -0500

How do I use <bean:message> in my ActionForm ?

Thanks,
Jana.
----- Original Message -----
From: "David Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 04, 2002 4:11 PM
Subject: Re: Internationalization of checkbox label


> Your items array should contain keys in your message resources. Then use
> the <bean:message> or <fmt:message> tag to output the key's value.
>
> David
>
>
>
>
>
>
> >From: "Jana Navaneethan" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Internationalization of checkbox label
> >Date: Wed, 4 Dec 2002 16:08:38 -0500
> >
> >Hi,
> > I want to use values, labels for the multibox from my application
> >properties file. I want to create a String[] in my form bean containing
> >elements from properties file (keys). for example in the code below I
want
> >to create string [] items form my properties file, i.e. UPS should come
> >from
> >properties in my ActionForm. Can someone tell me how to do that? Or any
> >other work around for this problem? Any help would be greatly
appreciated!
> >
> >Thanks,
> >Jana.
> >
> >private String[] items = {"UPS","FedEx","Airborne"};
> >
> ><logic:iterate id="item" property="items">
> > <html:multibox property="selectedItems">
> > <bean:write name="item"/>
> > </html:multibox>
> > <bean:write name="item"/>
> ></logic:iterate>
> >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
>
>
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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

Reply via email to