title: Struts2 Tiles plugin with multiple action classes
body: <p>Found some very good examples online that integrate Struts 2 with Tiles 2. I noticed that ALL of them map actions using wildcard method from a single action class. Is there a reason for doing so? My application doesn't work when I map actions individually to multiple classes. In the code below, <code>lookUpAll</code> action was added by me. Rest of the code is from the example I am trying to follow. </p>
  
  <p><strong>Struts.xml:</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;struts&gt;
  &lt;package name="default" extends="struts-default"&gt;
      &lt;result-types&gt;
          &lt;result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult" /&gt;
      &lt;/result-types&gt;
  
      &lt;action name="*Link" method="{1}" class="action.LinkAction"&gt;
          &lt;result name="welcome" type="tiles"&gt;welcome&lt;/result&gt;
          &lt;result name="friends" type="tiles"&gt;view&lt;/result&gt;
          &lt;result name="office" type="tiles"&gt;office&lt;/result&gt;
      &lt;/action&gt;
  
      &lt;action name="lookUpAll" class="action.LookupAll"&gt;
          &lt;result name="success" type="tiles"&gt;view&lt;/result&gt;
          &lt;result name="error" type="tiles"&gt;lookFail&lt;/result&gt;
      &lt;/action&gt;
  &lt;/package&gt;
  &lt;/struts&gt;
  </code></pre>
  
  <p>Tiles.xml </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  
  &lt;!DOCTYPE tiles-definitions PUBLIC
         "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
         "http://tiles.apache.org/dtds/tiles-config_2_0.dtd"&gt;
  
  &lt;tiles-definitions&gt;
  
    &lt;definition name="baseLayout" template="/baseLayout.jsp"&gt;
        &lt;put-attribute name="title"  value="Template"/&gt;
        &lt;put-attribute name="header" value="/header.jsp"/&gt;
        &lt;put-attribute name="menu"   value="/menu.jsp"/&gt;
        &lt;put-attribute name="body"   value="/body.jsp"/&gt;
        &lt;put-attribute name="footer"   value="/footer.jsp"/&gt;
    &lt;/definition&gt;
  
    &lt;definition name="welcome" extends="baseLayout"&gt;
        &lt;put-attribute name="title"  value="Welcome"/&gt;
        &lt;put-attribute name="body"   value="/welcome.jsp"/&gt;      
    &lt;/definition&gt;
  
    &lt;definition name="view" extends="baseLayout"&gt;
        &lt;put-attribute name="title"  value="View"/&gt;
        &lt;put-attribute name="body"   value="/DispSchedule.jsp"/&gt;      
    &lt;/definition&gt;
  
    &lt;definition name="lookFail" extends="baseLayout"&gt;
        &lt;put-attribute name="title"  value="LookFail"/&gt;
        &lt;put-attribute name="body"   value="/lookUpFail.jsp"/&gt;      
    &lt;/definition&gt;
  
    &lt;definition name="friends" extends="baseLayout"&gt;
        &lt;put-attribute name="title"  value="Friends"/&gt;
        &lt;put-attribute name="body"   value="/friends.jsp"/&gt;      
    &lt;/definition&gt;
  
    &lt;definition name="office" extends="baseLayout"&gt;
        &lt;put-attribute name="title"  value="Office"/&gt;
        &lt;put-attribute name="body"   value="/office.jsp"/&gt;      
    &lt;/definition&gt;
  
  &lt;/tiles-definitions&gt;
  </code></pre>