struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sonam Belbase <Sonam.Belb...@morganstanley.com>
Subject <bean:define> question
Date Mon, 17 Nov 2003 21:01:01 GMT
Hi,

If I have

<%
        List myList = (List) someList;
%>

where someList is a list of objects whose name property I want to
display in a dropdown,
why doesn't the following work?

<bean:define id="availableNames" name="myList" type="java.util.List" />
<html:options collection="availableNames" property="name"/>

Thanks,
Sonam
--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message