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

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

 
Dhineshkumar raj
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

thanks & regards,
seetharaman.v
 
chandra mohan
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic