Originally posted by vjy chin:
I need to load all the form when the page is loaded.
If by "loaded" you mean the data in the forms populated by ActionForm beans, then you don't need to do anything at all to make this happen. All the data in all the forms will be loaded when the page is displayed.
Struts and the web container will handle this automatically.
If you need to populate multiple ActionForm beans prior to displaying the page, you can do so. Just instantiate the beans, populate them, and put them in the proper scope. So, for example, if you specified request scope for each action mapping, you could do the following:
However, you need to understand that when the user presses a submit button, only the form that encloses that particular submit button will be submitted. The other two will not.
[ February 06, 2007: Message edited by: Merrill Higginson ]