1导包
struts2-core-2.1.8.jar
struts2-spring-plugin-2.1.8.jar
xmlbeans-2.3.0.jar
xsd-2.2.3.jar
xstream-1.3.jar
xwork-core-2.1.6.jar
standard.jar
slf4j-api-1.5.2.jar
freemarker-2.3.15.jar
等jar
2strtus.xml配置
2.1一般配置
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> /index.jsp
2.2使用通配符的配置
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> X-* /ztree/index.jsp
这样配置完之后,我们就可以以localhost:8080/工程名/命名空间(/ztree)/ztree_xxx.action xxx是action类中具体的方法名称。