File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes New Pattern - MVCA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "New Pattern - MVCA" Watch "New Pattern - MVCA" New topic
Author

New Pattern - MVCA

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
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

    Joined: Oct 27, 2005
    Posts: 57
    Nothing new.
    Its the same as MVC.
    Anderson Fonseca
    Ranch Hand

    Joined: Feb 05, 2004
    Posts: 126
    @TODO See Struts Framework


    Anderson Fonseca :: Brazil<br />SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCDJWS, SCEA(I), SCEA 5 (I,II,III)
    Gregg Bolinger
    GenRocket Founder
    Ranch Hand

    Joined: Jul 11, 2001
    Posts: 15300
        
        6

    Yea, just about every framework follows a similar pattern. Nothing new.


    GenRocket - Experts at Building Test Data
    ankur rathi
    Ranch Hand

    Joined: Oct 11, 2004
    Posts: 3830
    Sorry Guys,

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

    Sorry again.
    Adeel Ansari
    Ranch Hand

    Joined: Aug 15, 2004
    Posts: 2874
    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 ]
     
    wood burning stoves
     
    subject: New Pattern - MVCA