title: How to make a single UrlBasedViewResolver refer to a "tiles.xml" and some another xml for a view?
body: <p>It might sound like a weird question.
  Here is my situation:
  I'm writing a web application using Spring MVC 3.x
  I'm using UrlBasedViewResolver and Tiles combo to resolve the view.</p>
  
  <p>My webContext.xml</p>
  
  <pre><code>    &lt;bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver"&gt;
      &lt;property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView" /&gt;
  &lt;/bean&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/tiles.xml&lt;/value&gt;
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>My tiles.xml</p>
  
  <pre><code>    &lt;definition name="main" template="/WEB-INF/views/tiles/template.jsp"&gt;
      &lt;put-attribute name="resources" value="/WEB-INF/views/tiles/resources.jsp" /&gt;
      &lt;put-attribute name="header" value="/WEB-INF/views/tiles/header.jsp"/&gt;
      &lt;put-attribute name="title" value="" /&gt;
      &lt;put-attribute name="content" value="" /&gt;
  &lt;/definition&gt; 
  
  &lt;definition name="index" extends="main"&gt;
      &lt;put-attribute name="windowTitle" value="Some Name"/&gt;       
      &lt;put-attribute name="content" value="/WEB-INF/views/index.jsp"/&gt;        
  &lt;/definition&gt;
  
  &lt;definition name="dartWorkQueue" extends="main"&gt;
      &lt;put-attribute name="windowTitle" value="Some Name"/&gt;       
      &lt;put-attribute name="content" value="/WEB-INF/views/XXXWorkQueue.jsp"/&gt;     
  &lt;/definition&gt;
  &lt;definition&gt;
       ......     
  &lt;/definition&gt;
  
    &lt;definition&gt;      
       ......
  &lt;/definition&gt;
  </code></pre>
  
  <p>Now, what I want is for one of the scenario when the controller is called based on the URL from the JSP, the handler method should direct to some java bean that will render the output instead of a JSP.</p>
  
  <p>So basically, my question is, is it possible to ask the UrlBasedViewResolver to look into two different xmls for view resolution.</p>
  
  <p><strong>For example: If the handler returns a view-name, it should first look into tiles.xml and if it doesn't find any mapping there, then it should look in some XXX.xml</strong></p>
  
  <p>Or should I take a different approach altogether.</p>