title: Struts Hello world example : There is no Action mapped for namespace [/] and action name error
body: <p>i am absolute beginner to Struts2. I am tying to follow tutorials on struts web site. i followed <a href="http://struts.apache.org/2.3.1.2/docs/hello-world-using-struts-2.html" rel="nofollow noreferrer">this tutorial</a>. i have some trouble with it. i created dynamic web project on eclipse. Then i followed the tutorial. However when i run the example i get the following error. </p>
  
  <pre><code>There is no Action mapped for namespace [/] and action name [hello] associated with context path [/Hello_World_Struts_2]. - [unknown location]
  </code></pre>
  
  <p>i have the following directory structure</p>
  
  <p><img src="https://i.stack.imgur.com/WKeTY.jpg" alt="enter image description here"></p>
  
  <p>And my struts.xml file is</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.devMode" value="true" /&gt;
  
    &lt;package name="basicstruts2" extends="struts-default" namespace="/"&gt;
  
    &lt;action name="index"&gt;
      &lt;result&gt;/index.jsp&lt;/result&gt;
    &lt;/action&gt;
  
    &lt;action name="hello" class="org.apache.struts.helloworld.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>thanks for your responses.</p>