第一次搭建strust2 不成功

用的mye 10内置的strust2包
代码如下
package action;

import com.opensymphony.xwork2.ActionSupport;

public class hiAction extends ActionSupport {
/**
*
*/
private static final long serialVersionUID = 1L;

@Override
public String execute() throws Exception {
    // TODO Auto-generated method stub
    System.out.println("调用");
    return "success";
}

}

配置文件如下
<?xml version="1.0" encoding="UTF-8"?>
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_2_5.xsd">


index.jsp


struts2

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter



struts2
/*

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





/index.jsp



你看看你的web.xml里面有没有有配置struts2的拦截器,还有,你的struts配置文件是需要设置一个




这样的东西的

你看看你的web.xml里面有没有有配置struts2的拦截器,还有,你的struts配置文件是需要设置一个

 <package name="xx" namespace="">
 <action name=""x class="类的包名+具体的类的名字"> 
 </action>
 </package>

这样的东西的