I have one questions on struts that is can Action class can be treated as controller if yes reason.
If "No" then at the end of the Action class we specify mapping.findForward(" "); can we treat this statement as telling the controller to go to the specific location, then can we say action class as a controller also.
For the quick response thanking you,
Bye
Arvind Porlekar
Ranch Hand
Joined: Dec 31, 2008
Posts: 35
posted
0
Welcome To JavaRanch.!!!
I think No..
For Controller responsibility please see the source code of ActionServlet and RequestProcessor..
The Action objects, which are created from the configuration file, are "part" of the Struts Controller. There are many, many other objects that are also part of the Controller, e.g. ActionForward, ActionConfig, ActionServlet, etc.
afsar khan
Greenhorn
Joined: Jan 12, 2010
Posts: 8
posted
0
Action is a helper class for the Controller part of Struts Framework. We can not include Action class in the Struts Controller list rather it will be good if we consider this is a helper class for controller.