File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes action classes part of model or controller Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "action classes part of model or controller" Watch "action classes part of model or controller" New topic

action classes part of model or controller

Jiji Cherian

Joined: Apr 15, 2005
Posts: 14
Hi there,
could anyone tell me action classes belong to the controller part or model part..

Rgds.<br /> <a href="" rel="nofollow"></a>
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Bellongs to controller part, this is the place where you decide to where the request will be forwarded.

SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

...and you are not allowed to save state on Action classes, thus making them anything BUT the model.

Sounds like someone had an interview.

A good workman is known by his tools.
Vani Bandargal
Ranch Hand

Joined: Oct 06, 2005
Posts: 82
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....
I agree. Here's the link:
subject: action classes part of model or controller
It's not a secret anymore!