title: How to Dispatch Action types in Struts 2
body: <p>I am trying to find the replacement for <code>org.apache.struts.actions.DispatchAction.types</code> in Struts2.</p>
  <p>Below code snippet:</p>
  <pre class="lang-java prettyprint-override"><code>if(types != null)
  {
      if(types.length == forward.length)
      {
          select.add(type[0]);
      }
  }
  </code></pre>
  <p>The <code>forward</code> is a string type object and <code>select</code> is a list type array.</p>