title: Spring form does nothing
body: <p>I'm trying to update user settings info. When I hit submit, nothing happens.</p>
  
  <p>Here is my settings controller</p>
  
  <pre><code>@Secured({ "ROLE_USER", "ROLE_ADMIN" })
  @RequestMapping(value = "/settings**", method = RequestMethod.GET)
  public ModelAndView settings() {
      Authentication auth = SecurityContextHolder.getContext().getAuthentication();
      String userName = auth.getName();
      User userInfo = userDAO.getUserInfo(userName);
      Settings settings = userDAO.getSettingsInfo(userInfo.getDetails().getMacAddress());
      List&lt;Plugs&gt; plugs = userInfo.getDetails().getPlugs();
      ModelAndView model = new ModelAndView();
      model.addObject("settings", settings);
      model.addObject("plugs", plugs.get(plugs.size() - 1));
      return model;
  }
  
  @Secured({ "ROLE_USER", "ROLE_ADMIN" })
  @RequestMapping(value = "/settings", method = RequestMethod.POST)
  public ModelAndView settings(@Valid @ModelAttribute("settings") Settings settings, BindingResult result) {
      ModelAndView model = new ModelAndView();
      Authentication auth = SecurityContextHolder.getContext().getAuthentication();
      String userName = auth.getName();
      User userInfo = userDAO.getUserInfo(userName);
      if (result.hasErrors()) {
          model.setViewName("welcome");
      } else {
          model.setViewName("settings");
          userDAO.updateSettings(userInfo);
      }
  
      return model;
  }
  </code></pre>
  
  <p>JSP form</p>
  
  <pre><code>&lt;form:form method="POST" modelAttribute="settings" commandName="settings"&gt;
  </code></pre>
  
  <p>And here is my submit button</p>
  
  <pre><code>&lt;input type="submit" value="submit" name ="submit"&gt;
  </code></pre>
  
  <p>How do I get my form to do anything? It supposed to update the user details in a MySQL database. If you want more code posted, I'll add it.</p>