title: Struts 2 action class not working
body: <p><br/>
  I am using struts2 for developing a web application.<br/>
  I have include the required jars for struts2 but when it is going to call the struts action class it is throwing 404 error.<br/>
  There is no error on console and browser does not showing .action extension whitch it shows when struts.xml call an action class.<br/>
  I am using <code>jdk 1.6</code> and <code>struts 2.0</code>.<br/>
  Am I missing any jar who is responsible for all this.<br/></p>
  
  <p>In jsp I am simply calling the function from<br/> 
  <code>&lt;s:form action = "Mergexmlaction" method = "post"/&gt;</code></p>
  
  <p>Here is my struts.xml and web.xml</p>
  
  <p><strong>struts.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &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;constant name="struts.multipart.maxSize" value="6000000000" /&gt; 
  
    &lt;package name="default" namespace="/jsp" extends="struts-default"&gt;
      &lt;action name="Mergexmlaction" class="com.hm.merge.mergeaction.Mergexmlaction"&gt;
        &lt;result name="success" &gt;/jsp/Result.jsp&lt;/result&gt;
        &lt;result name="error" &gt;/jsp/Browse_multiplexmlfiles.jsp&lt;/result&gt; 
        &lt;interceptor-ref name="fileUpload"&gt;
          &lt;param name="maximumSize"&gt;600000000&lt;/param&gt; 
        &lt;/interceptor-ref&gt; 
      &lt;/action&gt;
    &lt;/package&gt;
  &lt;/struts&gt;
  </code></pre>
  
  <p><strong>web.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app id="xml_file_merging" version="2.4"
      xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"&gt; 
    &lt;display-name&gt;xml_file_merging&lt;/display-name&gt;
    &lt;filter&gt;
          &lt;filter-name&gt;struts2&lt;/filter-name&gt;
          &lt;filter-class&gt;
              org.apache.struts2.dispatcher.FilterDispatcher
          &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;welcome-file-list&gt;
          &lt;welcome-file&gt;jsp/Browse_multiplexmlfiles.jsp&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  &lt;/web-app&gt;
  </code></pre>