Java EE之Struts2路径访问小结

一、项目WEB视图结构

  注释:struts.xml:最普通配置,任何无特殊配置

二、访问页面

  1.访问root.jsp

//方式1:
http://localhost/demo/root.jsp

//方式2:
http://localhost/demo/

  2.访问index.jsp[暂无办法]

  3.访问content-index.jsp

http://localhost/demo/content-index.action

 

  4.访问project-index

http://localhost/demo/project/project-index.action

原文地址:https://www.cnblogs.com/johnnyzen/p/7824410.html