Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

action classes part of model or controller

 
Jiji Cherian
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
could anyone tell me action classes belong to the controller part or model part..
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bellongs to controller part, this is the place where you decide to where the request will be forwarded.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...and you are not allowed to save state on Action classes, thus making them anything BUT the model.

Sounds like someone had an interview.
 
Vani Bandargal
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting thread. From the Struts Books and experience, what I understand is Action Classes are really Model part. Struts.config plays the role of Controller.
Practically nobody wants/suggests to have any Business logic in Action Class methods even though it is a Model component.

Could anyone tell this is coreect or not and any other suggestion....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic