title: There is no Action mapped for namespace [/] and action name [login] associated with context path [/HelloWorld]
body: <p>there. I'm a beginner to struts2. I created a dynamic web project on eclipse so as to using struts 2. There are something wrong with it, and i just don not know why.
  the Console output is:
      <strong>Could not find action or result There is no Action mapped for namespace [/] and action name [login] associated with context path [/HelloWorld]. - [unknown location]</strong>
  and i have the following directory structure</p>
  
  <pre><code>-HelloWorld
  -JavaResources
    -src
       -com.ls.action
          -LoginAction
       -struts.xml
  +bulild
  -WebContent
    +META-INF
    -WEB-INF
       +lib
       -web.xml    
    -login.jsp
    -welcome.jsp
    -fail.jsp
  </code></pre>
  
  <p>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.3//EN"
          "http://struts.apache.org/dtds/struts-2.3.dtd"&gt;
      &lt;struts&gt;
          &lt;package name="helloWorld" namespace="/" extends="struts-default"&gt;
              &lt;action name="Login" class="com.ls.action.LoginAction"&gt;
                  &lt;result&gt;/welcome.jsp&lt;/result&gt;
                  &lt;result name="error"&gt;/fail.jsp&lt;/result&gt;
              &lt;/action&gt;
          &lt;/package&gt;
      &lt;/struts&gt;
  </code></pre>
  
  <p>my web.xml file is:
  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app version="3.0" 
      xmlns="http://java.sun.com/xml/ns/javaee" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
      http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"&gt;
    &lt;filter&gt;
      &lt;filter-name&gt;struts2&lt;/filter-name&gt;
      &lt;filter-class&gt;
          org.apache.struts2.dispatcher.ng.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;welcome-file-list&gt;
      &lt;welcome-file&gt;login.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>and my login.jsp file is
  </p>
  
  <pre><code>&lt;%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%&gt;
  &lt;%
  String path = request.getContextPath();
  String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  %&gt;
  
  &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Login&lt;/title&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
      &lt;h3&gt;Login&lt;/h3&gt; &lt;hr/&gt;
      &lt;form action="login.action" method="post"&gt;
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;td&gt;username：&lt;/td&gt;
                  &lt;td&gt;&lt;input type="text" name="userName"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;password：&lt;/td&gt;
                  &lt;td&gt;&lt;input type="text" name="password"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
              &lt;td colspan="2"&gt;
                  &lt;input type="submit" value="submie"&gt;&amp;nbsp;&amp;nbsp;
                  &lt;input type="reset" value="reset"&gt;
              &lt;/td&gt;
          &lt;/table&gt;
      &lt;/form&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>