title: How to exclude action methods from validation in struts2
body: <p>My Action class have the following methods,</p>
  
  <pre><code>1.add
  2.edit
  3.loadEdit
  4.remove
  5.list
  6.execute
  </code></pre>
  
  <p>in this i need to apply validation for add and edit..how do need to config in struts.xml.I followed,</p>
  
  <pre><code>&lt;action name="editComment" method="edit"
          class="com.mmm.ehspreg2.web.action.product.CommentAction"&gt;
      &lt;result name="success"&gt;/jsp/propertyManager/loadList.jsp&lt;/result&gt;
  &lt;/action&gt;
  &lt;action name="removeComment" method="remove"
          class="com.mmm.ehspreg2.web.action.product.CommentAction"&gt;
      &lt;interceptor-ref name="validation"&gt;
          &lt;param name="excludeMethods"&gt;remove&lt;/param&gt;
      &lt;/interceptor-ref&gt;
      &lt;result type="tiles"&gt;listComment&lt;/result&gt;
      &lt;result type="tiles" name="input"&gt;listComment&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>When I configure it like this, remove action method is not getting called. I don't understand the problem. Please assist.</p>