This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes In Struts, Action class is a part of Controller or Model    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "In Struts, Action class is a part of Controller or Model    " Watch "In Struts, Action class is a part of Controller or Model    " New topic
Author

In Struts, Action class is a part of Controller or Model

Dhineshkumar raj
Greenhorn

Joined: Aug 06, 2007
Posts: 28
Hi all,

In Struts, Action class comes under which part of Controller or Model ???

My opinion is , The Action Class is part of the Model and is a wrapper around the business logic. The purpose of Action Class is to translate the HttpServletRequest to the business logic.

And i got diffrent point from this site:
http://www.roseindia.net/struts/understandingstruts_action_class.shtml

Action class acts as wrapper around the business logic and provides an inteface to the application's Model layer. It acts as glue between the View and Model layer. It also transfers the data from the view layer to the specific business process layer and finally returns the procssed data from business layer to the view layer.

Can any one tell me clear idea..
Action class comes under which part Controller or Model ???

Regards
deenu
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi,

-----------------------------------------------------------------
Actionclass+ActionServlet+ActionForward=controller components
---------------------------------------------------------------------

thanks & regards,
seetharaman.v
chandra mohan
Greenhorn

Joined: May 05, 2008
Posts: 20
Action class acts as an adapter between the controller and business logic
It is a layer before the business logic so it will be a part of controller.

Ususally in model layer we won't pass requests but one of the parameters of the action class execute method is httprequest.

 
jQuery in Action, 2nd edition
 
subject: In Struts, Action class is a part of Controller or Model
 
Similar Threads
Business Logic
where to write session related code
Business Tier + Persistence Tier
struts2 MVC pattern - business logic question
JAR the web-application or use WSDL/SOA ?!?!