struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown" <donald.br...@gmail.com>
Subject Re: How to create a <s:select> using the struts.properties file
Date Fri, 02 Feb 2007 19:03:35 GMT
Oh, try this:

<s:select list="city" theme="simple" />

The problem is your empty list attribute.  Just give it the map and it
should know what to do.

Don

On 2/2/07, Struts2 Fan <struts2fan@gmail.com> wrote:
> ERROR [jsp]: Servlet.service() for servlet jsp threw exception
> tag 'select', field 'list': The requested list key '' could not be resolved
> as a collection/array/map/enumeration/iterator type. Example: people or
> people.{name} - [unknown location]
>     at org.apache.struts2.components.Component.fieldError(Component.java
> :221)
>     at org.apache.struts2.components.Component.findValue(Component.java:283)
> ----------------------------------------------------------------------------
>
> <s:select list="" listKey="city.keys" listValue="city.values"
> theme="simple"/>
>
> I don't know what to write to "list" attribute it is required but I want to
> use the value in struts.properties file as I said on the first message.
>
>

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


Mime
View raw message