Re: please help: ActionForms of same type but different name?

2003-10-29 Thread Kirk Wylie
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

RE: please help: ActionForms of same type but different name?

2003-10-28 Thread Chen, Gin
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

Re: please help: ActionForms of same type but different name?

2003-10-28 Thread Sonam Belbase
. 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

Re: please help: ActionForms of same type but different name?

2003-10-28 Thread Sonam Belbase
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

RE: please help: ActionForms of same type but different name?

2003-10-27 Thread Chen, Gin
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

Re: please help: ActionForms of same type but different name?

2003-10-27 Thread Sonam Belbase
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