title: Spring MVC : How to pass model object to controller method with out using form
body: <p>I have a controller class where i am adding an object to model, On view i can access it, and now i want to send this object back to a new controller method, Is it possible to do it with out using form? and example code is: </p>
  
  <p>Here i am adding 'details' to model.</p>
  
  <pre><code>@RequestMapping(...)
  public ModelAndView method1() {
         .....
          mv.addObject("details", details);
           mv.setViewName(REVIEW_PAGE);
           return mv;
  }
  </code></pre>
  
  <p>I have an "Ok" button on review page where details are reviewed. Now i want to send this "details" object back to a new method for submission.
  i want to access the details object in this second method of same controller class.</p>
  
  <p>I have tried to add this as model attribute (as you can see in following code) but i am getting null values inside details object.</p>
  
  <pre><code>@RequestMapping(....)
  public ModelAndView method2(@ModelAttribute("details") Details details){
  //access details object here        
  
  }
  </code></pre>
  
  <p>The flow is like : ( add details in model (method1) --> send to view for review --> confirm (click ok) --> send back for submission (method2))</p>
  
  <p>I am new to Spring MVC so if there are mistakes in my question, i am sorry for that.</p>