解决STRUTS2 异常 There is no Action 地图ped for namespace / and action name login

解决STRUTS2 错误 There is no Action mapped for namespace / and action name login使用MyEclipse8.5 +

解决STRUTS2 错误 There is no Action mapped for namespace / and action name login
使用MyEclipse8.5 + tomcat6.0进行开发。
这是一个登录验证程序。 
已经把structs资源包中的blank项目中的jar放到myeclipse的lib目录中 
代码部分见下 
错误信息 
严重: Could not find action or result 
There is no Action mapped for namespace / and action name login. - [unknown location]  ......
===================================================================
  /**********************以下为代码和配置文件**********************/
===================================================================
LoginAction.java程序如下:
package com.struts.action;

public class LoginAction {

private String username;
private String password;

public String getUsername() {
return username;
}

public void setUsername(String username) {
this.username = username;
}

public String getPassword() {
return password;
}

public void setPassword(String password) {
this.password = password;
}

public String execute() {
if (username.trim().equals("www") && (password.equals("www"))) {
return "success";
} else {
return "failed";
}
}
}
===============================================================
index.jsp文件代码如下:
<body>
<center>
<h1 align="center">
用户登录
</h1>
<form action="login.action" method="post">
姓名:
<input type="text" name="username" />
<br>
密码:
<input type="text" name="password" />
<br>
<br>
<br>
<input type="submit" name="submit" value="登录" />
</form>
</center>
</body>
================================================================
success.jsp和failed.jsp代码非常相似,如下:
success.jsp
<body>
<h1>欢迎登录!</h1>
</body>
failed.jsp
<body>
<h1>
登录失败!
</h1>
<a href="index.jsp">返回</a>
</body>
================================================================
其中struts.xml配置如下:
<struts>
<package namespace="" name="login" extends="struts-default">
<action name="login" />
你再仔细看看,不知道是不是struts版本的问题,我用的都是2.2以上的