Struts 1.x vs Struts 2.x

后端 未结 7 1814
隐瞒了意图╮
隐瞒了意图╮ 2021-01-12 05:30

I have reviewed a few Struts 1 vs 2 questions on SO but none seem to answer the question in the perspective that I am looking at it with.

I am about to start work ar

7条回答
  •  星月不相逢
    2021-01-12 05:36

    Well the main reason is moving to struts 2.x in place of struts 1.x is struts 1.x is in maintenance phase now not in much active development.

    now when it starts with a team who have good understanding of struts 1.x is that they will get the underlying system quickly.but before let me to put one point in a clear manner. struts1.x has no similarity with struts 2.x the only similarity is the name inherited from the parents. struts2 has following advantages.

    1. Action based framework
    2. A strong Ajax support
    3. Interceptors approach (core of framework) 4 Decoupled from the Serve let API which means plain POJO so unit testing will be much much easier

    but my point is simple struts2 and struts1 only similar in terms of name but in terms of underlying architecture they are quite different.

提交回复
热议问题