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: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to