aspose file tools*
The moose likes Struts and the fly likes Population of Form Fields from page to page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Population of Form Fields from page to page" Watch "Population of Form Fields from page to page" New topic
Author

Population of Form Fields from page to page

Paul Duer
Ranch Hand

Joined: Oct 10, 2002
Posts: 98
Okay guys,
I know this is an easy on, but I just wanna check and make sure I am doing it right.
I have a page with 3 combos on it. I use an ActionForm and Class to process the values and then I return to the same page with a results table displayed.
I want to be able to carry the values in those combo boxes over from the first instance of the page to the second, where I have the results.
How do I this using correct Struts methodolgy?
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Make sure that the ActionForm is populated with the correct values for re-display. Sometimes it is appropriate to simply specify the scope of the page as session, while perhaps other times you want to populate a new ActionForm.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Population of Form Fields from page to page