title: HTTP Status 405 - Request method 'GET' not supported when doing return "redirect:*.*" in spring mvc
body: <p>In spring MVC...
  I have to reload a page after the record is updated. So in the action method I am returning String and in return I am returning</p>
  
  <pre><code> return "redirect:/recordList";
  </code></pre>
  
  <p>When but it is giving the exception on the page </p>
  
  <pre><code> HTTP Status 405 - Request method 'GET' not supported
  </code></pre>
  
  <p>There is no exception coming on the logs.</p>
  
  <p>My controller method looks like</p>
  
  <pre><code>    @RequestMapping(value= "/recordList", method = RequestMethod.POST)
      public ModelAndView getAssetListForUser(@RequestParam("ldapId") String ldapId,
          final HttpServletRequest request){
  </code></pre>
  
  <p>Also, because I need the value if ldapId in the controller method, I am binding it in the calling method like this</p>
  
  <pre><code>     request.setAttribute("ldapId", assetAssetEmp.getAssetEmpId());
  </code></pre>
  
  <p>Please help.</p>