struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Heudecker <n...@systemmobile.com>
Subject Re: <bean:define> question
Date Mon, 17 Nov 2003 21:12:55 GMT
It doesn't work because you must put the variable into the page scope:

<%
List myList = (List) someList;
pageContext.setAttribute("myList", myList);
%>

> 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"/>


-- 
Nick Heudecker
SystemMobile, Inc.
Email: nick@systemmobile.com
Web: http://www.systemmobile.com

---------------------------------------------------------------------
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