Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can Action class be treated as controller

 
v chenna
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome To JavaRanch.!!!

I think No..

For Controller responsibility please see the source code of ActionServlet and RequestProcessor..

 
Ankit Garg
Sheriff
Posts: 9510
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we treat this stmt as telling the controller to go to the specific location, then can v say action class as a controller also.

Please UseRealWords on javaranch...
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic