aspose file tools*
The moose likes Struts and the fly likes Can Action class be treated as controller 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 "Can Action class be treated as controller" Watch "Can Action class be treated as controller" New topic
Author

Can Action class be treated as controller

v chenna
Greenhorn

Joined: Dec 28, 2009
Posts: 12
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

Joined: Dec 31, 2008
Posts: 38
Welcome To JavaRanch.!!!

I think No..

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

Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

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...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can Action class be treated as controller
 
Similar Threads
Topic: Struts and MVC. Question: how usually are working you?
@Controller annotation query
why do we need Application Controller?
struts2 Vs spring mvc
How to Check Session in Controller