struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sonam Belbase <Sonam.Belb...@morganstanley.com>
Subject Re: <bean:define> question
Date Mon, 17 Nov 2003 21:25:41 GMT
Thanks, Nick. That solved it.

-SB

Nick Heudecker wrote:

> 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

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