struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
Subject Re: Selecting over Static Maps from Resource Bundle
Date Tue, 04 Mar 2008 01:11:56 GMT
--- Chris Pratt <> wrote:
> Is it possible to place the data for the list attribute of an
> <s:select> tag in a resource bundle (so that it can be
> internationalized)?  I have tried adding the data to my
> file:
> Then referencing it in the JSP as:
> <s:select name="gender" id="gender" list="#{(getText(''))}"/>

You could try something like #{%{getText...}} but I suspect that wouldn't

You might also try creating it with a specific map type:

#@java.util.LinkedHashMap@{ getText... }

and see if that affects statement parsing. I suspect that won't work either,

You could also do the work in the action, converting the text values into a
real list/map.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message