Suggest a progression path from struts1 โ†’ (struts2, spring)

After reading and using Struts1(made by a web application using Struts/Hibernatein the last semester), I want to take a step forward in learning the best MVC framework. I was wondering if it would be more prudent to find out Struts2now and Spring later or skip Struts2for Springdirectly?

+3
source share
3 answers

I would suggest not to consider these two as mutually exclusive. Struts2 competes with Spring MVC, but Struts2 uses the Spring container for injection and AOP capabilities (Spring core and AOP).

Struts2 and Spring MVC work to achieve the same results: a simple MVC web framework. The decision between them will be to some extent a personal preference. I personally did not like the โ€œfeelโ€ of working with Spring MVC, while Struts2 and its stack interceptor felt much more comfortable with work.

I would suggest that you work with several Hello World educational applications in each structure and see what seems more intuitive to you. Both structures have strengths and weaknesses, but they can all be overcome.

+2
source

By adding points to Rich Kroll, Struts 2 provides rich tag libraries, and the structure is very well organized.

+1
source

, , Struts2 - , : Struts (1), Webworks. Struts, Struts2 SpringMVC - , .

0

Source: https://habr.com/ru/post/1707752/


All Articles