I am wondering is it good practice to write all forms in spring tags or can I mix spring form tags with html form tags?
Use Spring forms when you need functionality provided by them:
For simple forms (such as a simple search box on each page) you usually don't need these features - therefore you can use simple HTML forms for them.
Springs form:form
tag is supposed to be used with whenever you have a formbacking
object you wish to bind to the form (a model
object delivered to your view).
There are no additional benefits of using the tag in a regular form with no backing object.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With