Subject: Re: please help: ActionForms of same type but different name?
There is no knowing until runtime how many iterations there are
going to be.
That's why we can't define the n number of LoginForms.
The requirement is that on the same jsp, we will have repeating
html:form
simple.
Based on the formIteration value you know which of the n forms was used to
login.
Hope that helps.
-Tim
-Original Message-
From: Sonam Belbase [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 6:37 PM
To: Struts Users Mailing List
Subject: Re: please help: ActionForms of same
.
Based on the formIteration value you know which of the n forms was used to
login.
Hope that helps.
-Tim
-Original Message-
From: Sonam Belbase [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 6:37 PM
To: Struts Users Mailing List
Subject: Re: please help: ActionForms
which of the n forms was used to
login.
Hope that helps.
-Tim
-Original Message-
From: Sonam Belbase [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 6:37 PM
To: Struts Users Mailing List
Subject: Re: please help: ActionForms of same type but different name
One approach, you can define as many form-beans as you want iteratations.
Ex:
form-bean name=LoginForm_1
type=com.oreilly.struts.storefront.security.LoginForm
/form-bean
form-bean name=LoginForm_2
type=com.oreilly.struts.storefront.security.LoginForm
/form-bean
.
.
.
form-bean name=LoginForm_n
There is no knowing until runtime how many iterations there are going to be.
That's why we can't define the n number of LoginForms.
The requirement is that on the same jsp, we will have repeating
html:form/html:form sections. User will specify at runtime
how many he/she wants. The html:forms will
6 matches
Mail list logo