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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to