title: Handling end-of-URL slashes in Struts2 actions
body: <p>In my struts.xml I have the following configured in order to handle redirection of <code>myhost.com/admin</code> and <code>myhost.com/admin/</code> correctly:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;constant name="struts.enable.SlashesInActionNames" value="true"/&gt;
  
  &lt;action name="admin"&gt;
      &lt;result type="redirectAction"&gt;admin/home&lt;/result&gt;
  &lt;/action&gt;
  &lt;action name="admin/"&gt;
      &lt;result type="redirectAction"&gt;admin/home&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>Is there a quicker way to do this in Struts2?</p>