title: 404 when running project through eclipse on Tomcat
body: <p>I have a Struts 2 project with following directory structure. But when I try to run this project using Eclipse on Tomcat 7, it gives me 404 error.</p>
  <p><img src="https://i.stack.imgur.com/Ml8hD.png" alt="" /></p>
  <p><strong><code>Struts.xml</code>:</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  
  &lt;struts&gt;
    &lt;action name=&quot;login&quot; class=&quot;com.actions.LoginAction&quot; method=&quot;execute&quot;&gt;
       &lt;result name=&quot;success&quot;&gt;/jsp/login.jsp&lt;/result&gt;  
    &lt;/action&gt;
  &lt;/struts&gt;
  </code></pre>
  <p><strong><code>login.jsp</code>:</strong></p>
  <pre class="lang-xml prettyprint-override"><code>&lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;&gt;
  &lt;title&gt;Login Page&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;s:form action=&quot;login&quot; method=&quot;post&quot;&gt;
    Login name : &lt;input type=&quot;text&quot; value=&quot;name&quot;/&gt;
    &lt;/s:form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>On running at path <code>http://localhost:8080/StrutsPro/jsp/login.jsp</code>, it gives HTTP 404, why?</p>