Thanks for the reply. Here are the relevant sections of LoadAction and PersistAction:
LoadAction: public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DynaValidatorForm passForm = (DynaValidatorForm)form; SimpleItem[] itemsArray = new SimpleItem[2]; itemsArray[0] = new SimpleItem(); itemsArray[0].setQuantity("10"); itemsArray[0].setPrice("45.0"); itemsArray[1] = new SimpleItem(); itemsArray[1].setQuantity(""); itemsArray[1].setPrice("225.0"); passForm.set( "items", itemsArray ); return mapping.findForward( "success" ); } PersistAction: public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DynaValidatorForm passForm = (DynaValidatorForm) form; SimpleItem[] itemArray = (SimpleItem[])passForm.get("items"); return mapping.findForward(forward); } >> 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> >> > > > Is it possible you can post the relevant parts of LoadEditAction and > PersistEditAction? Without those I don't think anybody will be able to > help. > > Matt > > > > --------------------------------------------------------------------- > 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]