so you are using the dynaform?  only problem i have with this is setting the
size value. what if i don't know the size in advance?

-----Original Message-----
From: Liu, Anne I [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 6:06 PM
To: 'Struts Users Mailing List'
Subject: RE: parsing indexed properties in my action - how to do
mulitple row update


I've been trying to do the same thing, and this is the only solution I found
that works...

http://www.developer.com/java/ejb/article.php/2233591

> -----Original Message-----
> From: Menke, John [SMTP:[EMAIL PROTECTED]
> Sent: Friday, April 02, 2004 4:53 PM
> To:   Struts (E-mail)
> Cc:   Desai, Sunny
> Subject:      parsing indexed properties in my action - how to do mulitple
> row  update
> 
> 
> i'm trying to do something like this in my jsp so i can do a mulitple row
> update in my Action
> 
> <c:forEach var="lines" items="${bean.collectionName}" >
>   <TR>
>      <TD><core:out value='${partNumber}'/>"><html:hidden indexed="true"
> name="lines" property="partNumber"/></TD>
>     <TD><core:out value='${quantity}'/>"><html:hidden indexed="true"
> name="lines" property="quantity"/></TD>
>     <TD>
>                  <html:select property="countyCode"  indexed="true">
>                      <html:optionsCollection name="countyCode"
> property="countyCodeCollection" label="key" value="key" />
>                   </html:select>
> 
>    </TD>
> </TR>
> </c:forEach>
> 
> i have a bean
> 
> public class CollectonItem{
>   private String partNumber;
>   private String quantity;
>  private String countyCode;
> 
>   public String getPartNumber() {
>     return partNumber;
>   }
> 
>   public void setPartNumber(String partNumber) {
>     this.partNumber = partNumber;
>   }
> 
>   public String getQuantity() {
>     return quantity;
>   }
> 
>   public void setQuantity(String quantity) {
>     this.quantity = quantity;
>   }
> 
>  public String getCountyCode() {
>     return countyCode;
>   }
> 
>   public void setCountyCode(String countyCode) {
>     this.countyCode= countyCode;
>   }
> 
> 
> }
> 
> In my action how can i extract these values from the form and populate a
> collection of CollectionItem beans?  Do i have to use Dynaforms?  
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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]

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

Reply via email to