You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sonam Belbase <So...@morganstanley.com> on 2003/10/20 18:56:12 UTC

completely dynamic forms and jsp?

How would you do this using Struts?

User goes to a page where they can add profiles to a repository. There are
two
types of profiles a user can add. But the user can add as many profiles
of each type as they want on that page.

Profile type A requires input from 3 text boxes, and profile type B needs
input from 1 textbox and 1 drop down. Each has it own action to save it to
the repository.

At initial load of page, there are two buttons: "add profile of type A" and
"add profile of type B".

So, if user comes to the page and clicks ""add profile of type A" once, and
"add profile of type B" twice, at the end there should be 3 sections, the
first one with the 3 text boxes for profile type A, followed by the two
sections  each with the input fields for profile type B. Each section also
has it's own "save" button so although the user can set up the page to add 3
profiles, he/she can only save one profile at a time.

The main question is how do you dynamically add properties to the form and
display them at runtime? If one form is needed per profile added, how do you
keep adding <html:form> </html:form> to your jsp at runtime? Can tiles help?

Thanks,

SB


--
NOTICE: If received in error, please destroy and notify sender.  Sender does
not waive confidentiality or privilege, and use is prohibited.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org