title: Redirect from one controller method to another controller method
body: <p>I am using Spring 3 and Tiles 2 in my application and have a bit of trouble with redirecting.
  Preferably, I would like to be able to just call or redirect from a Controller1 method to Controller2 method, but so far have been unsuccessful.</p>
  
  <p>I have tried to create a new entry in the pageviews.properties file. That way I could just return this name from Controller1 and it would look up my tiles def name from the xml files.</p>
  
  <pre><code>createRejectionEmail.(parent)=tilesView
  createRejectionEmail.url=createRejectionEmail.page
  
  redirectRejectionEmail.(class)=org.springframework.web.servlet.view.RedirectView
  rediectRejectionEmail.contextRelative=true
  redirectRejectionEmail.url=createRejectionEmail.page
  </code></pre>
  
  <p>But, when I try returning like shown below my the URL contains createRejectionEmail as part of the URL  - instead of using that to do the look up in the tiles defs.
      mav.setViewName("redirectRejectionEmail");
      return mav;</p>
  
  <pre><code>&lt;definition name="createRejectionEmail.page" extends="brandedLayout"&gt;
    &lt;put-attribute name="targetFunction" value="status" /&gt;
    &lt;put-attribute name="content" value="/WEB  INF/jsp/pages/status/createRejectionEmail.jsp" /&gt;
  &lt;/definition&gt;
  </code></pre>
  
  <p>My current config is below.</p>
  
  <pre><code>&lt;bean id="resourceViewResolver"
  class="org.springframework.web.servlet.view.ResourceBundleViewResolver"
  p:order="0" p:basename="config.spring.viewresolution.pageviews"/&gt;
  
  
  
  &lt;bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer"&gt;
  &lt;property name="definitions"&gt;
     &lt;list&gt;
    &lt;value&gt;/WEB-INF/jsp/**/views.xml&lt;/value&gt;
      &lt;/list&gt;
  &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Any help and guidance would be greatly appreciated!</p>