Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Categories of MVC with Struts

 
Bob..... Wong
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

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
Posts: 341
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Bob's categories.

- Brent
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic