Skip to content Skip to sidebar Skip to footer

Inserting Mysql Database Data Into A Html Form

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 its code: &l

Solution 1:

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.

Post a Comment for "Inserting Mysql Database Data Into A Html Form"