Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using same form from different action

 
Srilakshmi Vara
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a problem.

I am having a ActionForm object For Ex.Exform, And have multiple actions which act on the actionform Action1, Action2, Action3..

Action1 works, and changes the form state from ExForm to ExForm1
Action2 works, and changes the form state from ExForm1 to ExForm2
So on and so forth.

I have a solution but i donno how does it work?

Can anybody handled this kind of scenario before?

I would appreciate any response from all.

Thanks,
Srilakshmi
 
Pranav Sharma
Ranch Hand
Posts: 258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could put your form in session scope and then access/modify them.

mannu
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Beware that every ActionMapping will call the form's reset method. If you are using checkboxes anywhere (which require being reset), this could create problems.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic