官网下载Struts2.5-min-lib.zip解压把lib目录下jar包拷贝到web项目lib目录下
配置web.xml文件
action2 org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter action2 /*
struts.xml 新建在src目录下
/WEB-INF/pages/hello.jsp
index.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>Insert title here hello
运行项目跳转