--- On Tue, 9/2/08, Mead Lai wrote: > the Action has a ModelData:userList > > private List <User> userList; > for (int i = 0; i < 3; i++) { > user.setUserId(i + "i"); // userId (useless comments) > user.setEmail(i + "@user.com"); // email > userList.add(user); > } > > my tag in jsp is showed following: > <s:select label="test" name="test" list="${userList}" > listKey="email" listValue="userId" required="true" /> > > but some error caused below: > > tag 'select', field 'list', name > 'assignEditor': The requested list key > '$userList' could not be resolved as a > collection/array/map/enumeration/iterator > type. Example: people or people.{name} - [unknown location] > > javax.servlet.ServletException: tag 'select', field > 'list', name > 'assignEditor': > The requested list key '$userList' could not be > resolved as a collection/array/map/enumeration/iterator > type. Example: people or people.{name} - [unknown location]
Does userList have a publicly-accessible getter? (There's also no reason to put the ${} around userList in the "list" attribute.) Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]