最近一个月学习了一些常用框架的配置方法,在这里做个总结,一来加深印象,二来方便日后整理使用。

Struts2作为最先学习的框架,它的配置算是各种框架中最简单的。

总共分为三步:1、配置Struts2的filter 2、编写action 3、编写配置文件

1、在web.xml内:

框架配置----Struts2

2、编写action:

框架配置----Struts2

3、Struts2.xml内:

框架配置----Struts2

其中的result的name属性代表的时action中返回的string值,根据值来跳转到相应的页面

相关文章:

  • 2021-09-04
  • 2021-07-24
  • 2021-07-08
  • 2021-06-10
  • 2021-06-26
  • 2018-03-07
  • 2022-12-23
  • 2021-07-14
猜你喜欢
  • 2021-11-19
  • 2021-04-11
  • 2021-11-24
  • 2021-10-15
  • 2021-07-24
  • 2021-06-24
  • 2021-06-28
相关资源
相似解决方案