struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Coby <>
Subject <s:select> can't work with validation, please help
Date Thu, 30 Aug 2007 08:40:22 GMT

Hi, I got a strange validation problem with the list which I retrieved from
an action: 

the following form works perfectly fine without using validation, 

<s:form action="saveClub" method="post"> 
<s:textfield label="Club name" name="club.clubName" 
<s:action name="listLeague" id="lgs"></s:action> 
<s:select label="League" list="#lgs.leagues" name="" 
value="%{}" listKey="id" listValue="leagueName" 
headerKey="" headerValue="---Pls select---"> 

but after adding ClubAction-validation.xml, I got this error while
submitting the form: tag 'select', field 'list', name '': The
requested list key '#lgs.leagues' could not be resolved as a
collection/array/map/enumeration/iterator type. Example: people or
Note: "leagues" is exactly a List which I defined in LeagueAction. 
I am using paramsPrepareParamsStack interceptor for the saveClub action, and
defaultStack interceptor for listLeague action. 

I tried all the ways to solve this problem but always failed... Anyone can
help with this issue? Thanks in advance! 

View this message in context:
Sent from the Struts - User mailing list archive at

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

View raw message