The form is first populated with the user information from a database. So, their is a populated "ProfileActionForm" that is within the current user session.
If I make some changes to the profile information then submit the form the database does have the updated information, however, the form does not reflect the updated information after submit, it shows the data it was first populated with. What I would like is that, after submitting the form the redisplayed form to show the updated information. (Note: after submitting the form, the form redisplay again) _CJ On Tuesday 29 July 2003 04:45 am, Mainguy, Mike wrote: > You shouldn't have to do that. If your form already has all of the values > coming in, unless you reinitialize your form, it will still have them going > out. The only things you may have to fool with are values that where not > submitted with the form. > > Am I missing something? > > -----Original Message----- > From: Curtney Jacobs [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2003 10:38 AM > To: Struts Users Mailing List > Subject: Reflecting Changes in a Form After data has been updated > > Greetings everyone! > > I have an input form where my users can update their profile. After the > user > > have select the "Update" button I would like the form to reflect the > updated > > information the user has just submitted. > > What is the best way to implement this? > > I can think of one way; in my update action class after the data has been > successfully updated in the database, copy the fields from my value object > (updated data) back into the ActionForm and subsequently put it back into > the > current session. Is this the most efficient/elegant way of doing this? > > > Thanks inadvance, > > _CJ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > This message and its contents (to include attachments) are the property of > Kmart Corporation (Kmart) and may contain confidential and proprietary > information. You are hereby notified that any disclosure, copying, or > distribution of this message, or the taking of any action based on > information contained herein is strictly prohibited. Unauthorized use of > information contained herein may subject you to civil and criminal > prosecution and penalties. If you are not the intended recipient, you > should delete this message immediately. > > > > --------------------------------------------------------------------- > 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]