关于struts2的配置问题,找不到action的

最基本的结构
action类是
test.testAction.java文件
//-------------------------------------------------------
package test;

import com.opensymphony.xwork2.ActionSupport;

public class testAction extends ActionSupport {

private String name;
public String getName() {
    return name;
}
public void setName(String name) {
    this.name = name;
}
public String execute() throws Exception
{
    return SUCCESS;
}

}
//------------------------------------------------------------
//下面是Struts.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">


  <action name="test"   class="test.testAction" >
        <result name="success">test.jsp</result>
  </action>

//------------------------------------------------------------
//下面是WebContent下的intput.jsp和test.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">



Insert title here




/s:form

//---------------------------------------------------------
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">



Insert title here




http://blog.csdn.net/muxiaoshan/article/details/7464229

推荐:
http://bbs.csdn.net/topics/390715509
http://bbs.csdn.net/topics/390008173
http://blog.csdn.net/zijingwj/article/details/5799381