there is a setQty (see bottom).

Also, shouldn't <html-el:text name="orderFormItem" property="qty"
indexed="true"/> work? According to the docs it should - I think. But I get:

500 Translator.CompilationFailedExceptionCompiler errors:
Found 1 semantic error compiling
"C:/JRun4/servers/default/store/WEB-INF/jsp/jrun__order2ejspa.java":

138. _tag6.setIndexed(__constantTable.getString(6));
<-------------------------------------------->
*** Error: No match was found for method "setIndexed(java.lang.String)".

Translator.CompilationFailedExceptionCompiler errors:
Found 1 semantic error compiling
"C:/JRun4/servers/default/store/WEB-INF/jsp/jrun__order2ejspa.java":

138. _tag6.setIndexed(__constantTable.getString(6));
<-------------------------------------------->
*** Error: No match was found for method "setIndexed(java.lang.String)".



----- Original Message ----- 
From: "Erez Efrati" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 12, 2003 4:13 PM
Subject: RE: forEach & html-el:text - it's not working


> David,
>
> As far as I can tell you, this cannot work. The population from the
> request to a new fresh form will fail due to the fact that the form
> doesn't have a setQty() setter method.
>
> Erez
>
> -----Original Message-----
> From: David Thielen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 12, 2003 11:03 PM
> To: Struts-Users
> Subject: c:forEach & html-el:text - it's not working
>
> Hi;
>
> I am trying to use html-el:text inside a c:forEach and according to
> everything I have read - this should work. But it doesn't. Any ideas?
>
> thanks - dave
>
> my jsp
>     ...
>     <c:forEach items="${orderForm.items}" var="orderFormItem"
> varStatus="status">
>         <tr><td>
>             <html-el:text name="orderFormItem" property="qty"
> indexed="true"/>
>         </td></tr>
>     </c:forEach>
>
> Where OrderForm.java has:
>     ...
>     public OrderFormItem [] getItems() { return items; }
>     public OrderFormItem getItem( int ind ){ return items[ind]; }
>     public void setItem( int ind, OrderFormItem ofi ){ items[ind] = ofi;
> }
>     ...
>
> and OrderFormItem has:
>     ...
>     public String getQty() { return Integer.toString(qty); }
>     public void setQty( String num){ qty = Integer.parseInt(num);}
>     ...
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


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

Reply via email to