Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to have nested form (form:form) in spring

Is it possible to have nested form:form in spring mvc?

like image 560
sridhar Avatar asked Oct 31 '12 09:10

sridhar


People also ask

Can you have nested forms?

Every form must be enclosed within a FORM element. There can be several forms in a single document, but the FORM element can't be nested. The browser is responsible for handling the input focus, i.e. which field will currently get keyboard input.

Does Spring use Servlets?

So the Spring Web application entry point is, not surprisingly, a servlet.

Are nested forms valid HTML?

So no, nested forms are not allowed.

What is spring form in Spring MVC?

Spring MVC is a Model-View-Controller framework, it enables the separation of modules into Model, View, and Controller and uniformly handles the application integration. In this article, we will create a student login form and see how Spring MVC handles form-based web-based applications.


2 Answers

no, you can you have only one form action/backing object but the backing object could be nested.

like image 68
NimChimpsky Avatar answered Sep 29 '22 14:09

NimChimpsky


It is not possible to have nested forms in HTML.

Spring generates HTML, so it can't have them either.

like image 34
Quentin Avatar answered Sep 29 '22 13:09

Quentin