In your query mapping, add a bean to the model:
model.addAttribute("queryInfo", queryInfo);
Then use the modelAttribute attribute in the form tag to bind it to the form:
<form:form id="some-form" modelAttribute="queryInfo"> ...
Now, when you do this, the name will be displayed (if there is a tap in the corresponding name):
<form:input path="name" />
Keep in mind the form: input is a child tag of the form: form. It is not intended to be used on its own.
source share