You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sri Sankaran <Sr...@sas.com> on 2002/06/05 22:59:13 UTC

No getter error

Using Struts 1.01b and Nesting extension on Win2k running Tomcat 4.0.3 

Could anyone point me to the reason why I am getting the following error?

No getter method for property products[0].name 

Situation:

Form bean is :

class DependenciesBean extends ActionForm {
  ..
  private ArrayList products;
  public Object[] getProducts() { return(products.toArray()); }
  ..
}

The collection products contains objects of type ProdDep

class ProdDep {
  ..
  private String name;
  public String getName() { return(name); }
  ..
}

The JSP is :
<html:form> <%-- Associated with form bean of type DependenciesBean --%>
  ..
  <nested:iterate property="products">
    ..
    <nested:write property="name"/>
    ..
  </nested:iterate>
  ..
</html:form>


  TIA

Sri


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>