Hi,

I am getting "Attribute indexed invalid according to the specified 
TLD" in my JSP.

Here is part of my ActionForm:
    private List parameterList = new ArrayList();
    public List getParameterList()
    {
        logger.debug("List size is: " + this.parameterList.size());
        return parameterList;
    }
    public void setParameterList(List parameterList)
    {
        this.parameterList = parameterList;
    }
    public OrderDetailModel getOrderDetail(int index)
    {
        return (OrderDetailModel) parameterList.get(index);
    }

Here is the code in my Action where I set the form on the session:
    updateOrderForm.setParameterList(orderDetailList);
    //orderDetailList is my ArrayList object
    session.setAttribute("updateOrderForm", updateOrderForm);

Here is my JSP:
<html:form action="updateOrder.do" name="updateOrderForm" 
type="com.academy.ordering.forms.UpdateOrderForm">
  <logic:iterate id="parameter" name="updateOrderForm" 
property="parameterList"> 
    <tr bgcolor="<%= bgColor %>">
      <td><html:text name="parameter" property="orderLineNumber"  
indexed="true" /></td>
      <td><html:text name="parameter" property="itemName"  
indexed="true" /></td>
      <td><html:text name="parameter" property="quantityOrdered"  
indexed="true" /></td>
    </tr>
  </logic:iterate>
  <input type="submit" value"Update">
</html:form>

I looked at the Struts html:text tag description, 
http://jakarta.apache.org/struts/struts-html.html#text, and it says 
that I can use "indexed". I am using Struts 1.0.2. I am doing 
something wrong?

Thanks,
Marwan



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

Reply via email to