This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
Similar Threads
diff b/w threetier and mvc
Difference between servlet and struts
What are the differences btw MVC and Front Controller design patterns?
where to write session related code
JAR the web-application or use WSDL/SOA ?!?!