toplhh

struts1原理:

  1.首先我们表单提交到action

  2.进入到web.xml

  3.web.xml拦截*.do

  4.交给ActionServlet

  5.找到path属性,获得url

  6.找到name实体类,封装from

  7.找到type,type就是action地址

  8.进入action

  9.完成之后就foroword跳转

struts2原理:

  1.表单提交action

  2.web.xml拦截/*

  3.进入FilterDispatcher

  4.之后找到default.properties文件

  5.default.properties文件里面又执行3各东西

    1.编码格式设置

    2.设置后缀

    3.找3个xml   第一个struts-default.xml   第二个struts-plugin.xml 第三个就是 struts.xml

初学,专业术语不是很会,如果有错,给位博客好友可评论纠错,

      

分类:

Struts

技术点:

相关文章:

  • 2021-09-17
  • 2021-09-20
  • 2021-10-12
  • 2021-10-10
  • 2018-05-07
  • 2020-02-15
  • 2021-12-10
  • 2018-05-15
猜你喜欢
  • 2018-03-30
  • 1970-01-01
  • 2020-05-26
  • 2020-06-08
  • 2021-01-25
  • 2021-08-06
  • 2021-08-29
相关资源
相似解决方案