struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SUHAS G. KULKARNI" <suha...@ctd.hcltech.com>
Subject RE: Getting collections of messages
Date Thu, 23 Aug 2001 11:31:45 GMT
I think U need to create the OptionLabelValue class and populate it with
something like
      String i8nLabelValue = messages.getMessage("title.option.mr");
      list.add(new OptionLabelValue(i8nLabelValue,i8nLabelValue));
And in the jsp use <select name=" x" > < html:options
name="NameUnderWhichUsavedTheAboveList" property= "name"
labelProperty="value"> </html:options></html:select>

Let me know if it works





-----Original Message-----
From: Rakesh [mailto:ayilliath@india.com]
Sent: Thursday, August 23, 2001 12:51 PM
To: struts-user@jakarta.apache.org
Subject: Re: Getting collections of messages


Hi,

check the struts-validator extension at
http://home.earthlink.net/~dwinterfeldt/



 Rakesh Ayilliath

ayilliath@india.com

----- Original Message ----- 
From: "Adam Hardy" <adam_hardy@yahoo.com>
To: <struts-user@jakarta.apache.org>
Sent: Thursday, August 23, 2001 4:06 AM
Subject: Getting collections of messages


> Hello,
> 
> Is it possible to return collections of messages from
> the ApplicationResources.properties file?
> 
> Eg the ApplicationResources.properties could be:
> page1.optionbox.1=Apples
> page1.optionbox.2=Oranges
> page1.optionbox.3=Pears
> ...
> ...
> 
> I would like to get page1.optionbox.* as a collection
> to populate an options tag.
> 
> I have looked through the JavaDoc for
> org.apache.struts.util.MessageResources and it doesn't
> have any methods that return collections or arrays so
> I guess the answer is probably no.
> 
> Is there a way to acheive this functionality?
> 
> Thanks Adam.
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 

Mime
View raw message