Struts 1.x vs Struts 2.x

后端 未结 7 1872
隐瞒了意图╮
隐瞒了意图╮ 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

    If you are building a system from scratch I would definitely move onto version 2.x of Struts. The learning curve will not be great for a Struts 1.x team, but you will be able to take advantage of an up-to-date MVC framework.

    For me the two main features of Struts 2.x which will enhance productivity are:

    • Built in AJAX support
    • No more ActionForms - you can bind directly into Domain Objects if you want, so this intermediate step has gone.

    If it's a big project you're working on, you might want to look at a component framework e.g. JSF 2 or Wicket. If you're determined to stay on an Action based framework then I personally find Stripes a more productive framework.

提交回复
热议问题