I have records of products in my mysql database (I\'m talking about a spring MVC java project using hibernate).
I have a html (and css) form of a search screen, here is
I would say, your form in the HTML page must be a tag <form:form>
and assigned a modelattribute
. I believe it will be a ProductsEntity
.
The binding of the form
tag is explained here.
You will have include the taglib library for tag to work.
Include <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
between the <!DOCTYPE html>
and the <html>
tag.