title: Case Sensitivity of Action Names in Struts 2
body: <p>Is there an easy way to make Struts 2 action names case insensitive? Currently I have the following action defined:</p>
  
  <pre><code>&lt;action name="printTest" class="MyClass" &gt;
    &lt;result name="error"&gt;/WEB-INF/jsp/error.jsp&lt;/result&gt;
    &lt;result name="input"&gt;/WEB-INF/jsp/test.jsp&lt;/result&gt;
    &lt;result name="success"&gt;/WEB-INF/jsp/test.jsp&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>If the user types URL <code>/app/printtest.do</code> instead of  <code>/app/printtest.do</code> this action is not executed. </p>
  
  <p>Other then mod_rewrite on the httpd level or something like that, the only option that I know about right now is simply adding the same exact action and changing the name to <code>printtest</code>. Ideally it would be a simple config change to <code>struts.xml</code>.</p>