Struts 1.x vs Struts 2.x

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

    Struts 1.x is 2000 vintage technology. Why on earth would you even consider sticking with it on a brand-new app?

    The biggest drawback that I can see is that Struts locks you into a JSP-based, browser UI. Struts Actions are reusable only within the framework. You'll have a hard time seamlessly integrating a mobile device into that system if you need to.

    I'd start thinking about web services, preferrably REST-based, and AJAX. The world has changed. I'd look into alternatives to Struts, like Spring or Play. Picking up a new web framework wouldn't be that big a deal, but the benefits could be worth it.

    Those employees that have done nothing but work with an outdated framework for the last five years will thank you, too. Time for new skills.

    UPDATE: If you've tried, and can't be late, and too many constraints, then I'd say you already know your answer. What are you hoping to get by coming here? I don't see an argument that you've failed to think through.

提交回复
热议问题