title: Struts dispatcher cannot be found
body: <p>ERROR comes like : </p>
  
  <p><strong>The Struts dispatcher cannot be found.  This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag.</strong></p>
  
  <p>MY struts.xml</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;Struts2 Login&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;index.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p></p>
  
  <p>my web.xml :</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.action.excludePattern" value="/ServletToExcludeFromStruts*"    /&gt;
  &lt;constant name="struts.enable.DynamicMethodInvocation" value="false" /&gt;
  &lt;constant name="struts.devMode" value="true" /&gt;
  &lt;package name="helloworld" extends="struts-default"&gt;
  
      &lt;action name="hello" class="com.struts.action.HelloWorldAction"
          method="execute"&gt;
          &lt;result name="success"&gt;/HelloWorld.jsp&lt;/result&gt;
      &lt;/action&gt;
      &lt;/package&gt;
   &lt;/struts&gt;
  </code></pre>
  
  <p>and required jar file...[correct me if i am wrong]</p>
  
  <pre><code>commons-logging-1.0.4.jar
  freemarker-2.3.8.jar
  ognl-2.6.11.jar
  struts2-core-2.0.11.jar
  xwork-2.0.4.jar
  commons-collections-3.0.jar
  commons-fileupload-1.2.1.jar
  commons-lang-2.4.jar
  commons-io-1.3.2.jar
  javassist-3.0.jar
  </code></pre>