Struts repopulates the Action's associated ActionForm every time an Action
is called.

There have been a few debates on this subject.  I can't seem to find the
(lengthy) thread on this discussion from the archives.

While it doesn't fit everyone's needs, I happen to agree with the way it was
implemented.

In theory, your workflow should be structured so that 'the Action you submit
to' should use the ActionForm "as-is". The subsequent Action (should you
chose to do that) should build (or request from the biz tier) the newest
ActionForm and not try to carry it around from action to action with the
hope of sending it along to the next view.

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




  -----Original Message-----
  From: Wilinski, Pamela M. [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 17, 2002 10:46 AM
  To: '[EMAIL PROTECTED]'
  Subject: Changes to form lost on forward


  I've searched the web and talked with my colleges and we are stumped.  I
have an application where my form is populated by a JSP and validated in the
form validate method.  I then do some edits in the subsequent action and
forward based upon selections made in the JSP.  For some reason all the
changes I make for the form are rolledback by the time we get to the next
action.  Any clues???

  Thanks,
  Pam Wilinski
  Business Consultant
  Kraft Foods Transportation Information Systems, Madison
  (608) 285-4108 email: [EMAIL PROTECTED]


Reply via email to