struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Burton Rhodes <burtonrho...@gmail.com>
Subject [S2] How do I convert getText to a list for <s:select> ?
Date Tue, 24 Mar 2009 01:44:38 GMT
I know this is a simple one, but for some reason just can't crack it.

I have a resource property like so:
titleOptions=Mr.,Mr. & Mrs.,Mrs.,Ms.,Dr.,Dr. & Mrs.,Mr. & Dr.,Dr. & Dr.

And then I have html like this:
<!-- This will print out the entire line in "one" select choice -->
<s:select
      name="teamUser.title"
      list="%{getText('titleOptions')}"
/>

I've tried surrounding it by #{...} in several places but get an a
parse error or cannot convert to list/array/collection, etc.

What's the answer here? Many thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message