Is your currentProject in session? If so, try
list="${#session.currentProject.projects}"
-----Original Message-----
From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 25, 2007 6:53 AM
To: Struts Users Mailing List
Subject: s:select problem
Hi!
How can I retrieve the collection to put in "list" attribute if this
collection is in the sessionScope??
I´m trying:
<s:form id="selectProject" name="selectProject">
<s:select name="projectId"
list="${currentProject.projects}"
listKey="reference"
listValue="name"
required="true"
onchange="alert(form.projectId.value);"/>
</s:form>
where "currentProject" has a List of projects.
I´m getting the following exception:
tag 'select', field 'list', name 'projectId': The requested list key
'[reference: 22name: cambiado............] ' could not be resolved as a
collection/array/map/enumeration/iterator type. Example: people or
people.{name} - [unknown location]
Thanks.
---------------------------------------------------------------------
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]