struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
Subject Re: Validation with preloading form fields
Date Fri, 08 Oct 2010 23:45:23 GMT
Are you implementing Preparable, or overriding the input() method?


On Friday, October 8, 2010, Joshua Tennent <> 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
> 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:
> For additional commands, e-mail:

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

View raw message