title: Moving data between MVC objects
body: <p>I have 2 tables.  One is a list of parts with a key = PID.  The second is a list of parttickets.
  This is how I've currently setup the controller.</p>
  
  <pre><code>@RequestMapping("/addNewParttickets")
  public ModelAndView addNewParttickets(@RequestParam Integer pidKey) {
      ModelAndView mav = new ModelAndView();
      mav.addObject("parts", partsDAO.findPartsByPrimaryKey(pidKey));
      mav.addObject("parttickets", new Parttickets());
      mav.addObject("newFlag", true);
      mav.setViewName("parttickets/addNewParttickets.jsp");
      return mav;
  }
  </code></pre>
  
  <p>My question is, how do I set partickets.pid = parts.pid?  Would it be best to do this in the addObject call?  (if so, then how?)  Or is it best to do this in the jsp file as part of the form setup?
  Or am I totally in left field here and need to do more research?</p>