File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New Pattern - MVCA

 
ankur rathi
Ranch Hand
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This is my new pattern/framework:

MVCA

Model-View-Controller-Action



  • JSP files can be or will be more than one
  • Only one servlet for whole project, and that is the controller
  • Difference between *action java classes* and *model java classes* are:


  • action java classes are having (or using) web objects such as request, response, session etc, the purpose of these classes is, getting useful data from these web objects and calling methods defined model java classes...

    model java classes are having actual business logic methods, they are not having any web objects so we can write Junit easily.

    Please let me know, something is new or not.... good or not...

    Thanks a lot.

    [ December 25, 2005: Message edited by: rathi ji ]
     
    Sunny Kumar
    Ranch Hand
    Posts: 57
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Nothing new.
    Its the same as MVC.
     
    Anderson Fonseca
    Ranch Hand
    Posts: 126
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    @TODO See Struts Framework
     
    Gregg Bolinger
    GenRocket Founder
    Ranch Hand
    Posts: 15302
    6
    Chrome IntelliJ IDE Mac OS X
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Yea, just about every framework follows a similar pattern. Nothing new.
     
    ankur rathi
    Ranch Hand
    Posts: 3830
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Sorry Guys,

    But why they don't include Action in the name. It also serves important purpose...

    Sorry again.
     
    Adeel Ansari
    Ranch Hand
    Posts: 2874
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Originally posted by rathi ji:
    But why they don't include Action in the name. It also serves important purpose...


    Because action is not really qualify for this. The role of action is just to help controller to make navigation/flow decision. And it would be at minimum if we implement MVC without Front Controller Pattern and Command Pattern. And we generally have alot more things other then Model, View, and Controller, so what do you think the initials of all should have been there in MVC. like

    MVCA/CH - (Model, View, Controller, Action/Command, Helper), just a thought.
    [ December 27, 2005: Message edited by: Adeel Ansari ]
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic