struts2 工作原理和执行流程1.客户端发送url请求:http://localhost:8080/Struts2_0100_Introduction/hello

2.读取webapplication 即Struts2_0100_Introduction 找到这个webapp里的web.xml文件

3.读取web.xml文件里的filter 过滤url地址 对查找对应的struts.xml文件struts2 工作原理和执行流程

4.在struts.xml文件里查找namespace ,找到对应的namespace“/”后找action里的name hello 再找到result后的hello.jsp在前端显示。struts2 工作原理和执行流程

相关文章: