Thanks Sri for the quick reply. The first of two assumptions you mentioned below are not true but I am not sure about the third one: "forwarding to an action that is re- initializing the form".
My ActionForm.reset() is as follows: public void reset(ActionMapping mapping, HttpServletRequest request) { action = null; } And here is my action-mapping: <action path="/updateOrder" type="MyAction" name="myForm" scope="session" validate="false" input="/updateorder.jsp"> <forward name="update" path="/showorderdetails.jsp"/> <forward name="edit" path="/updateorder.jsp"/> </action> The reset method does not have any code that initializes the form parameters so I don't know why this is happening. Marwan --- In [EMAIL PROTECTED], "Sri Sankaran" <[EMAIL PROTECTED]> wrote: > I'm not sure I understand completely. Are you returning to the same page after the form is submitted? What are you doing in the reset() and Action? > > That notwithstanding, here are some possibilities: > > * The text fields are not within a form > * You are re-directing to the page and not forwarding > * You are forwarding (or redirecting) to an action that is > re-initializing the form. > > Will need to see the necessary action mappings too. > > Sri > > > -----Original Message----- > > From: MarwanSalam <[EMAIL PROTECTED]> > > [mailto:marwansalam@y...] > > Sent: Thursday, February 20, 2003 1:09 PM > > To: [EMAIL PROTECTED] > > Subject: Where are my ActionForm's changes? > > > > > > Hi, > > > > I am using the <login:iterate> tag to display a collection of > > objects. The objects have attributes that some can > > be edited by the user. After the user changes some values and submits > > back to the Action class, the values that were changed in the JSP are > > not reflected in the form. I know that because I tried to iterate > > through the collection and displayed the values retained from both > > the ActionForm.reset() and from the Action class. No changes are > > retained; only the original values. I am using Struts 1.1-b3. > > > > Here is my ActionForm: > > > > private List parameterList = new ArrayList(); > > public List getParameterList() > > { > > return parameterList; > > } > > > > public void setParameterList(List parameterList) > > { > > this.parameterList = parameterList; > > } > > > > public MyObject getMyObject(int index) > > { > > return (MyObject) parameterList.get(index); > > } > > > > What's wrong? > > > > Marwan > > > > > > ------------------------------------------------------------------ --- > > 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]