Results 1 to 2 of 2
  1. #1
    Monique7 is offline Member
    Join Date
    May 2014
    Rep Power

    Default Why is Spring MVC considered action based not component-based

    I found several articles explaining differences between action/request-based and component-based frameworks but I still don't see much difference between the two.

    In action-based the flow goes like this: Request -> Action -> View

    And in component-based the flow is like this: Request -> Component -> View

    Does the component here mean input field, form... ?

    As I understand the component one groups actions by type. But given this Spring MVC controller, doesn't it also group ?

    Java Code:
    public class HomeController {
        @RequestMapping(value = "/home", method = RequestMethod.GET)
        public String home(Locale locale, Model model) {
    So, why exactly is Spring MVC considered action based ?

  2. #2
    AlexSerov is offline Member
    Join Date
    Dec 2010
    Rep Power

    Default Re: Why is Spring MVC considered action based not component-based

    It general, much depends on how we define components and actions. Of course, any Java framework works with classes and their instances and of course any Java class is a kind of component. Still we distinguish component-oriented WEB frameworks from others and that is about re-usability of presentation layer building blocks, which are not necessarily just Java classes but usually somewhat more complex creatures that include, for instance, templates.

    Ideal component incorporates its presentation, some part of its model and its behavior in one entity. The following Java WEB frameworks ARE component-oriented (not a complete list) - Wicket, Tapestry, HybridJava. Spring MVC is not - it works with whole pages, not components.

    See also a suggested definition of component-oriented WEB framework at HybridJava | Framework
    Last edited by AlexSerov; 05-18-2014 at 10:16 PM.

Similar Threads

  1. Replies: 16
    Last Post: 08-09-2013, 01:02 PM
  2. Spring with JQuery based grid
    By Tobias Kürbis in forum Spring
    Replies: 0
    Last Post: 06-04-2013, 11:28 AM
  3. Replies: 2
    Last Post: 08-07-2012, 05:19 PM
  4. COM based component Project
    By jazz2k8 in forum New To Java
    Replies: 0
    Last Post: 07-17-2008, 10:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts