struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Jessica" <>
Subject RE: Cannot retrieve definition for form bean
Date Tue, 06 Mar 2001 22:28:48 GMT
I actually have a Vector of objects and "groupName" is a property of the
object (inside the Vector).  I am trying to iterate through a collection of
say Hashtables and store the key as the value of the option statement and
the corresponding value as the display text.  Maybe there is a
better/different way to do it?

I changed my code to reflect your suggestion pointing to the object instead
of the vector, but I had the same result.


-----Original Message-----
From: Mikael Eriksson []
Sent: Tuesday, March 06, 2001 4:24 PM
Subject: Re: Cannot retrieve definition for form bean

I think it should be:
<html:options collection="group"  property="groupName" />

 The collections should contain beans that has a property groupName.

 Mikael (Who has been wrestling with the options tag quite a bit today ...)

"Anderson, Jessica" wrote:

> I have seen a few messages regarding this error and all refer to using
> <load-on-startup>.  I have done this and, like the example, have used 1 as
> the value (though I am not certain what the value means.)
> I am using the <html:form> with an <html:select> and attempting to create
> the options with a collection.  The jsp doesn't do much more...just trying
> to get the select example to work barebones.
> <html:select property="selectGroup">
>     <html:options name="group" labelName="groupName" />
> </html:select>
> my collection is named "group".  Anyone know why I am receiving this
> thanks,
> Jessica

View raw message