I didn't quite follow code sample, but I believe that your Vendor object (not your ActionForm) needs to have getName() getVendor() methods.

-Bill Siggelkow

Sergey Livanov wrote:

I have a vendors collection consisting of bean Vendor( long vendor,
String name )

When I'm writing
<html:select property="vendor" >
<html:optionsCollection property="vendors" label="name" value="vendor"/>
</html:select>
a null value occur!


MY FORM
private Vendor [] vendors ;
public Vendor [] getVendors()
{ return this.vendors; } public void setVendors( Vendor [] newvendors )
{ this.vendors = newvendors; }


    private long vendor[] ;
    private String name[] ;

    public long [] getVendor()
       { return( vendor ) ; }
    public void setVendor( long [] newvendor )
       { vendor = newvendor ; }

    public String [] getName()
       { return( name ) ; }
    public void setName( String [] newname )
       { name = newname ; }


Please , help.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to