title: Proper use of Spring tag library in jsp
body: <p>If I don't use <code>&lt;% @ taglibprefix = "sf" uri = "http://www.springframework.org/tags/form"%&gt;</code>
  the application works the same. The User user object is filled with the fields of the form. Is it correct to use this approach?</p>
  
  <p>Is the use of <code>&lt;sf:form method="POST"modelAttribute="user"&gt;</code> more correct?</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  pageEncoding="ISO-8859-1"%&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Inserisci nuovo utente&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h2&gt;Dati utente&lt;/h2&gt;
  &lt;form action="/SpringMVCFormHibernate/add" method="post"&gt;
      &lt;label&gt;Cognome&lt;/label&gt;&lt;br/&gt;&lt;input type="text" name="cognome"/&gt;&lt;br/&gt;
      &lt;label&gt;Nome&lt;/label&gt;&lt;br/&gt;&lt;input type="text" name="nome"/&gt;&lt;br/&gt;
      &lt;label&gt;Eta&lt;/label&gt;&lt;br/&gt;&lt;input type="text" name="eta"/&gt;&lt;br/&gt;&lt;br/&gt;
  
      &lt;input type="submit" value="submit"/&gt;
  &lt;/form&gt;
  &lt;p&gt;&lt;a href="/SpringMVCFormHibernate/show"&gt;Visualizza utenti&lt;/a&gt;&lt;/p&gt;
  &lt;sf:label path=""&gt;&lt;/sf:label&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  @Controller
  public class UtenteController {
  
  @Autowired
  UtenteDAO utenteDAO;
  
  @RequestMapping(value="/add",method=RequestMethod.POST)
  public String addUtente(@ModelAttribute Utente user){
      utenteDAO.inserisciUtente(user);
      return "index";
  }//addUtente
  }//UtenteController 
  </code></pre>