You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Curt Hagenlocher <cu...@motek.com> on 2001/03/16 02:30:08 UTC

OptionsTag Collection

Is there any reason why the collection used by an OptionsTag can't
be a property of another bean?  It would be easy to implement, and
would save using the <bean:define> beforehand.

diff -r1.3 OptionsTag.java
191c191,195
<             Iterator collIterator = getIterator(collection, null);
---
>             Iterator collIterator;
>             if (name == null)
>                 collIterator = getIterator(collection, null);
>             else    
>                 collIterator = getIterator(name, collection);

--
Curt Hagenlocher
curth@motek.com