You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by John Hethcox <jo...@terriersystems.com> on 2003/07/16 18:58:30 UTC

options and properties

I have a table inside of a form. Each row in the table has a select list. I
indexed the select so the submitted values contain the parameter
name[I].propertyName when submitted. I can pull the values out from the
parameter name, but I was trying to create a setter in the ActionForm. The
method setPropertyName( int I, String str) generates a
javax.servlet.ServletException: BeanUtils.populate
exception for reasons unknown. Is this the right signature for the setter?
Should I just pull the data out of the parameters and get on with my life?
TIA,
John


Re: options and properties

Posted by Sandeep Takhar <sa...@yahoo.com>.
should just be setProperty(String str)

with 

WhateverObject getName(int index)

careful if you are using request scope beans because
they won't be there.  See other recent posts about how
to code getName(int index)

sandeep
--- John Hethcox <jo...@terriersystems.com> wrote:
> I have a table inside of a form. Each row in the
> table has a select list. I
> indexed the select so the submitted values contain
> the parameter
> name[I].propertyName when submitted. I can pull the
> values out from the
> parameter name, but I was trying to create a setter
> in the ActionForm. The
> method setPropertyName( int I, String str) generates
> a
> javax.servlet.ServletException: BeanUtils.populate
> exception for reasons unknown. Is this the right
> signature for the setter?
> Should I just pull the data out of the parameters
> and get on with my life?
> TIA,
> John
> 
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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