title: Spring MVC 3.0 with Apache Tiles - Mutiple Forms in one page
body: <p>I'm using spring mvc (3.0) with apache tiles in my project. I have multiple forms in a single page rendered through tiles.</p>
  
  <p>The login form and search form are common to most pages. The “body” in the tile definition keeps changing. </p>
  
  <p>So, as shown below, in all of my mvc controllers I have to explicitly set command object in the corresponding model.
  1. model.put("userBO", userBO);
  2. model.put("searchBO", searchBO);</p>
  
  <p>Is there a way I can move this part of the code to a common place or a global controller, so that I don’t have to write these two lines in all the controllers that I write?</p>