That was it, thanks! I forgot to implement Preparable.
On 10/8/2010 7:45 PM, Dave Newton wrote:
Are you implementing Preparable, or overriding the input() method? Dave On Friday, October 8, 2010, Joshua Tennent<[email protected]> wrote:I am having trouble validating a form where it requires preloading lists for some of the fields. I'm not sure how to configure the struts.xml entry for the INPUT return type. I am getting this error, which is indicating it's not getting to the prepare method of createCharacterAction: tag 'radio', field 'list', name 'gender': The requested list key 'genders' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location] The form will load properly when I call the action directly or from my redirectAction below in the doLogin action. I have tried various values for the input type but nothing seems to work. Any suggestions? <action name="doLogin" class="loginAction"> <result name="input" type="tiles">/login</result> <result name="error" type="tiles">/login</result> <result name="success" type="tiles">/welcome</result> <result name="nocharacter" type="redirectAction">prepareCreateCharacter</result> </action> <action name="*CreateCharacter" method="{1}" class="createCharacterAction"> <result name="prepare">/pages/createcharacter.jsp</result> <result name="input">/pages/createcharacter.jsp</result> <result name="error">/pages/createcharacter.jsp</result> <result name="success" type="tiles">/welcome</result> </action> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

