title: Struts 2 Hello World
body: <p>I have a problem at this <a href="https://struts.apache.org/docs/hello-world-using-struts-2.html" rel="nofollow noreferrer">example</a></p>
  
  <p>I work with eclipse for Java EE and Apache Tomcat 8.
  My project structure: </p>
  
  <p><a href="https://i.stack.imgur.com/mrSei.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mrSei.png" alt="http://s29.postimg.org/xtevpxgef/stackstruts2.png"></a></p>
  
  <p>The web.xml code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app id="WebApp_ID" 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;Hello World Struts 2&lt;/display-name&gt;
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
  
  
      &lt;filter&gt;
          &lt;filter-name&gt;struts2&lt;/filter-name&gt;
          &lt;filter-class&gt;org.apache.struts2.dispatcher.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;/web-app&gt;
  </code></pre>
  
  <p>The other files code is the same as the struts website.
   When I run the index.jsp file I get the following error:</p>
  
  <blockquote>
    <p>**HTTP Status 404 - /helloworld/index.jsp</p>
    
    <p>type Status report<br>
    message /helloworld/index.jsp
    description The requested resource is not available.**</p>
  </blockquote>
  
  <p>Can someone spot the reason why can't I run it? </p>