struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <k...@dotech.com>
Subject Re: Attribute indexed invalid according to the specified TLD
Date Tue, 18 Feb 2003 00:04:54 GMT
Try:

http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#text

You're looking at the 1.1 stuff...

MarwanSalam wrote:
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

-- 
Kris Schneider <mailto:kris@dotech.com>
D.O.Tech       <http://www.dotech.com/>


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


Mime
View raw message