MVC framework and action-based MVC framework

Hi, I worked with JSF, which is the component-based MVC framework. I know that many web projects use Spring because their technology and Spring fall into the category of "action-based interface". I want to know what is the difference? Which one is more advanced and gives more flexibility to users? Some pros and cons?

+4
source share
1 answer

A component web platform is a way to implement Web-based (HTTP) applications similar to those with a thick client, where the user works with GUI controls that fire as a result of events. Here, views (web pages) are the central part of the application.

The action-based web platform places emphasis on the nature of the HTTP request-response protocol, where the requests are the actions that need to be performed (in the general case: display URI maps for operation, request / body map parameters for operation arguments). Here, representations are just a way of displaying the results of operations / actions.

Both models have pros and cons. The first one seems simpler (especially if you have a Swing background), but in the long run for HTTP programming there is a problem with the return HTTP request. The latter is more natural for HTTP and allows you to write more testable code (controllers).

ps Java web applications have moved from MVC to component-based frameworks, or rather, first were Struts and others, and then JSF. In the .NET world, ASP.NET first appeared, followed by ASP.NET MVC.

+5
source

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


All Articles