1  Action类是POJO的类(POJO-----简单java对象类)

  •         建立Action类

              Struts2 Action类的三种写法

  •      

2  Action类去实现Action接口

Struts2 Action类的三种写法

3   Action类去继承ActionSupport类

Struts2 Action类的三种写法

 

 

 

 

 

写好Action类之后要写配置文件,并在struts.xml中引入配置文件

  • 编写配置文件

Struts2 Action类的三种写法

 

  •       在struts.xml引入上面的配置文件

    Struts2 Action类的三种写法

相关文章:

  • 2022-12-23
  • 2021-07-19
  • 2021-12-18
  • 2021-04-14
  • 2022-01-18
  • 2022-12-23
  • 2021-08-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2021-11-13
  • 2021-09-02
  • 2021-06-25
  • 2021-12-06
相关资源
相似解决方案