struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ch...@kattare.com
Subject Re: cannot create iterator problem
Date Tue, 13 Sep 2005 18:48:57 GMT
Hi,

It’s a good suggestion but I still can't get it to work,

My JPP code is:
                                                                       
           <html:select property="ccy" styleClass="dropdown" styleId="ccy">
                                                                       
                   <html:options collection="ccyLst"  property="rows" />
                                                                       
           </html:select>
 
error is "Cannot create iterator for
org.apache.commons.beanutils.RowSetDynaClass@462f90"

RowSetDynaClass ccyLst is in session scope….

chhum




Quoting Laurie Harper <laurie@holoweb.net>:

> chhum@kattare.com wrote:
> > Hi,
> > I've got a dynabean stored in session scope with a list of swift
> codes
> > and descriptions in it.  In an action form/jsp I want to output
> this
> > list to a combo box.  I can do this using an iterate of my own but
> don't
> > know how to get the current value from the actionform. 
> Alternatively I
> > thought I could use 
> > 
> > <html:options collection="cyclist"  property="dynaProperties" />
> > 
> > but this comes back with "Cannot create iterator for 
> > org.apache.commons.beanutils.RowSetDynaClass@19ef365"
> > 
> > How can I do this?
> 
> So 'cyclist' names a bean of type RowSetDynaClass? 'collaction' is
> meant 
> to name a bean which is a collection, (List, Set, etc) and 'property'
> 
> should be the name of a property of the elements in the collection,
> not 
> a property of the collection itself.
> 
> What you want is probably more like
> 
>    <html:options name="cyclist" property="rows"/>
> 
> L.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


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


Mime
View raw message