aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: In Struts, Action class is a part of Controller or Model