setStoreroom and getStoreroom are not using the same class type. If you
change them to match, this will work.
--
Dan Miser
http://www.distribucon.com
>From: "Alex Colic" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "Struts" <[EMAIL PROTECTED]>
>Subject: Need help with Bean:define.
>Date: Tue, 17 Apr 2001 10:59:58 -0400
>
>StoreRoomForm has the following two methods:
>
> Vector storerooms=new Vector()
> public void setStoreroom(pwStoreroom newStoreroom)
> {
> storerooms.add(newStoreroom);
> }
>
> public Vector getStoreroom()
> {
> return storerooms;
> }
>Now I want to populate a select box with the names of the storerooms kept
>in
>my list of storerooms kept in the session.
>
>I have tried the following:
>
>First Line: check to make sure that their is an object of type
>'StoreRoomForm' in the session under the key "storeroom". This works.
>
>Second line: place any user selection into another bean. This works
>
>Third line: create a bean using the pwStorerooms held in the vector. This
>does not work. I keep getting a "No getter method for property storeroom of
>bean storeroom." I think the way I have structured this line is correct.
>Name=the key of the bean to search for; scope=the session scope to search
>upon and property=the name of the vector property in the bean.
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com