Hi,
I've brand-new requirement. My requirement is, I've User-Input Form(
JSP). In that form I've Text fields Name and Age and I given Add button and Another Text box named Others next to the Age Text-field, So that I(user) can add any number of text fields I(user) want.
Name : [TextField]
Age : [TextField] Others: [TextField] Add[Button]
SUBMIT[button]
If the user Typed Gender in Others "TextField" and clicks Add button. Then My form Will be,
Name : [TextField]
Age : [TextField]
Gender: [TextField] Others: [TextField] Add[Button] Delete[Button].
SUBMIT[button]
If he entered something in Others, again Another field Will be created in the form. Now clicks on SUBMIT, I've to pass those parameters Name, Age, Gender(If user enters), etc.,(User entered fields). I've to inject those params from JSP to Bean in struts-2. I think it is not possible. If possible, Please help me guys. Please send some example code.
For further details please see
HERE.
Thanks:
Ramakrishna k.c