Exactly. Using the s:select for your example below would be as follows:
<s:select name=²loanType² list=²#{1:getText(key.value1), 2,
getText(key.value2)}²/>
Z.
> Z,
> I'll clarify with a simple example :
> The dropdown must be like :
>
> <select name="loanType"><option value="1">EnglishType1</option><option
> value="2">EnglishType2</option></select> for EN and <option
> value="1">SpanishType1</option><option value="2">SpanishType2</option>
>
> So, the values 1 and 2 remain constant, only the text changes. Now, i don't
> want to maintain 1, 2 separately from its text. My understanding from your
> suggestion is to have a list of "Option" objects whose responseKey attribute
> wil hold 1, 2 and responseValue attribute is like "key.value1" ,
> "key.value2" etc. which is defined in properties file as :
> key.value1=EnglishType1
> key.value2=EnglishType2 etc.
>
> Let me know if i've understood it correctly.
>
> Thanks,
> Joseph
>
>
>
> I just want to get a couple things straight:
>
> 1. Your state names are in localised properties files
> 2. The properties files are available to struts2 either via
> struts.custom.i18n.resources or convention (read don¹t ask)
>
> If you app satisfies these two points then the method I mentioned will work
> fine. If it doesn¹t, it¹s not that much work to satisfy them.
>