I'm working from the examples here:
http://www.developer.com/java/ejb/article.php/3321521

I have an array of values that are sent to a page for editing.  The page
is coming up ok with the correct text box values as seen below
(item[0].xxx, etc).  But when the form is submitted the changes don't
show up in PersistEditAction.  The form contains the original data just
as it was before the forward from LoadEditAction.

Thanks for any help,
Brady

<input type="text" name="item[0].quantity" value="">
<input type="text" name="item[0].price" value="785.0">

<input type="text" name="item[1].quantity" value="">
<input type="text" name="item[1].price" value="225.0">


<form-bean
        name="Items"
        type="org.apache.struts.validator.DynaValidatorActionForm">
        <form-property name="items"
                type="com.litriusgroup.cart.hibernate.SimpleItem[]" />
</form-bean>

<action path="/Edit"
        type="com.stuff.struts.LoadEditAction"
        name="Items"
        scope="session"
        validate="false">
        <forward name="success" path="/admin/edit.jsp" />
</action>
<action path="/saveEdit"
        type="com.stuff.struts.PersistEditAction"
        name="Items"
        scope="session"
        validate="false">
        <forward name="success" path="/admin/edit.jsp" />
        <forward name="error" path="/admin/edit.jsp" />
</action>


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

Reply via email to