Does Struts allow Nested Forms
1 posts in topic
Flat View  Flat View

Posted By:   makarand_sonawane
Posted On:   Saturday, February 23, 2002 05:02 AM

I have information which spread across different sections on same JSP . I would like to have separate FORM for each section on page. But there is only one submit for all the FORMS. This submits should update all the properties present.
But as far as my understanding Struts only the single FORM gets submitted.

Is there any work around, so that I can create A Parent FORM which will contain multiple Form’s and on submit The parent Form will update the child FORMS

Thx and Regards,

Re: Does Struts allow Nested Forms

Posted By:   Ted_Husted  
Posted On:   Saturday, February 23, 2002 05:43 AM

HTML itself does not support nested or multiple
forms. Some developers do manage to simulate the appearance
of nested forms using various techniques. The

dbForms tags
seem to do this quite

In some cases, while the may appear to be separate "forms"
to the user, there is actually a single form. Often each
"form" uses the same set of parameter names, which HTTP
does allow, and Struts does support. If you define any
property as an array, Struts will fill that array with as
many multiple parameters as there are in the request. So
Struts usually works quite well with
approaches like this.

HTH -Ted

About | Sitemap | Contact