Struts2入门实例

 

  • 官方网站下载Jar包:(本案例使用:struts-2.3.20.1)
  • 导入Jar包:
  • 配置web.xml文件:

  • 配置struts.xml文件:

 

 

  • 新建一个类

  • 新建一个JSP视图文件

  • 运行http://localhost:8080/Test/index

 

posted @ 2018-05-31 12:04  呦,可以呦  阅读(77)  评论(0编辑  收藏  举报