A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide
this week in the
Using same form from different action
Joined: Jul 21, 2004
Jul 07, 2005 06:50:00
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.
Joined: Oct 27, 2003
Jul 07, 2005 08:27:00
You could put your form in session scope and then access/modify them.
Joined: Feb 05, 2003
Jul 07, 2005 10:12:00
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.
A good workman is known by his tools.
I agree. Here's the link:
subject: Using same form from different action
Struts best practices
How to forward to Action class
changing the context
Problem with Forward
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015