title: Struts - Exception - The Struts dispatcher cannot be found
body: <p>I am using <code>Struts 2.1.8.1</code>. I want to use tags, supplied by <code>struts</code>, im my jsp pages. e.g</p>
  
  <pre><code>&lt;%@ taglib prefix="html" uri="/struts-tags" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
          &lt;title&gt;Transfer Program - Login&lt;/title&gt;
     &lt;/head&gt;
     &lt;body&gt;
         &lt;html:form action="/loginaction.do" method="post"&gt;
             Username:&lt;html:text name="username"&gt;&lt;/html:text&gt;
         &lt;/html:form&gt;
     &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><b>But when I run the above jsp page, I got the following error:</b></p>
  
  <pre><code>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. - [unknown location]
  org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:60)
  org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:44)
  </code></pre>