• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Categories of MVC with Struts

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 341
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree with Bob's categories.

- Brent
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic