File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Categories of MVC with Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Categories of MVC with Struts" Watch "Categories of MVC with Struts" New topic

Categories of MVC with Struts

Bob..... Wong

Joined: Feb 26, 2008
Posts: 1

I have been a struts developer for some time now, and I have a good working
understanding of the MVC framework to do development. However, after some further reading, these seems to be contradictory information on how struts fits into the MVC framework. That's why I want to ask the experts out - there are my following categorizations correct?

How struts fits into the MVC framework

View: JSPs, Form Classes
Controller: Action Classes, struts-config.xml
Model: DAOs, Beans, EJBs

Services Layer: These contain all the business logic, it is called by the Action classes.

Is the above categorization correct?

Since my business logic is implemented by the services layer, it does not fit
within any of the View, Controller, or Model categories?

Many thanks!
Anubhav Anand
Ranch Hand

Joined: May 18, 2007
Posts: 341

There are a few arguments on the same. Few differences may be found if you read multiple articles and books.

But, still your categorisation is quite a bit correct.

Also, maybe this is useful Struts MVC
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
I agree with Bob's categories.

- Brent
I agree. Here's the link:
subject: Categories of MVC with Struts
It's not a secret anymore!