aspose file tools*
The moose likes Struts and the fly likes Using same form from different action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using same form from different action" Watch "Using same form from different action" New topic
Author

Using same form from different action

Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
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

Joined: Oct 27, 2003
Posts: 258
You could put your form in session scope and then access/modify them.

mannu
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

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: http://aspose.com/file-tools
 
subject: Using same form from different action