title: struts2 ignore particular pattern
body: <p>I am using strust2 for my web application development. My struts.xml file will be like:</p>
  
  <pre><code>&lt;!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"&gt;
  
  &lt;struts&gt;
      &lt;package name="default" extends="struts-default" namespace ="/"&gt;
          &lt;action name="signup"&gt;
              &lt;result&gt;/check.jsp&lt;/result&gt;
          &lt;/action&gt;
      &lt;/package&gt;
  &lt;/struts&gt;
  </code></pre>
  
  <p>and my web.xml file will be something like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"&gt;
    &lt;display-name&gt;sample&lt;/display-name&gt;  
    &lt;filter&gt;
      &lt;filter-name&gt;struts2&lt;/filter-name&gt;
      &lt;filter-class&gt;
              org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter&lt;/filter-class&gt;
    &lt;/filter&gt;
    &lt;filter-mapping&gt;
      &lt;filter-name&gt;struts2&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
    &lt;/filter-mapping&gt;
  
    &lt;servlet&gt;
      &lt;servlet-name&gt;My WS&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.sun.jersey.spi.container.servlet.ServletContainer&lt;/servlet-class&gt;
      &lt;init-param&gt;
        &lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;
        &lt;param-value&gt;com.dr1.dr2&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;My WS&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/checking&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>and now,
  if i access like: <a href="http://localhost:8080/appName/" rel="nofollow">http://localhost:8080/appName/</a> its going to my signup action perfectly. 
  But when i tried to access like  <a href="http://localhost:8080/appName/checking" rel="nofollow">http://localhost:8080/appName/checking</a> (for webservices), Its even looking in struts.xml and getting an error message like:</p>
  
  <p><strong>HTTP Status 404 - There is no Action mapped for namespace / and action name checking.</strong>..
  even after defining this in web.xml..</p>
  
  <p>Is there any way to <strong>exclude a pattern in struts2</strong>, so that when I hit <a href="http://localhost:8080/appName/checking" rel="nofollow">http://localhost:8080/appName/checking</a>, it must not look struts action, it must call my default page path defined in web.xml file.</p>
  
  <p>Thanks..</p>