Inserting mysql database data into a html form

前端 未结 1 618
暗喜
暗喜 2021-01-28 04:29

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

相关标签:
1条回答
  • 2021-01-28 04:55

    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.

    0 讨论(0)
提交回复
热议问题