Loading multiple forms in single jsp

Hi,

My jsp page has multiple forms (one form for each table which has specific info). So assume it has 3 tables, so 3 forms.

I need to load all the form when the page is loaded.

code:

<FORM name=form1 action="/action1" method=post></FORM>

<FORM name=form2 action="/action2" method=post></FORM>

<FORM name=form3 action="/action3" method=post></FORM>

So if I need to load all the forms, how should I proceed. Also please note each form has its own form class and action class.

For e.g. Assume Page A (From Page A I am coming to this form page via a hyperlink and there is no action class in between) calls the page with 3 forms and I need to display all the values in the 3 forms. So how can I call the action classes for each of the 3 forms.

So when and how will the action1, action2, action3 called?

Any help would be greatly appreciated.

Thanks.

[957 byte] By [abcv143a] at [2007-11-26 17:39:03]
# 1
Only one form will be submitted and that is the one which the user submits (click on the submit button). If you want all the inputs to be submitted you better put them in one form.
beradriana at 2007-7-9 0:07:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks for your reply. I understand only one form would be submitted. Its ok.

But the thing I am looking at is loading the multiple form values at a time.

I have page A, Page B (where I need to display multiple form values. Actually this page has 3 tables, and each table is one form e.g. one table has all the name values, one table has all address values. So each has different actions).

I am calling Page B via a hyperlink from Page A. Since I need to use hyperlink, there is no way (atleast I dont know) of using action class or anything.

Now, my question is how do I populate the values for all these 3 forms.

Any help would be great.

Thanks.

abcv143a at 2007-7-9 0:07:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
I solved it using action class instead of hyperlink.Thanks
abcv143a at 2007-7-9 0:07:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...