How many types of action clases are there in stuts and
their uses?

Answer Posted / ramakrishna goud.n

Different types of action classes
1).Action Class
2).IncludeAction Class
3).ForwardAction Class
4).DispatchAction Class
5).LookUpDispatchAction Class
6).SwitchAction Class

In this we use the Action Class for implementing the
business logic

We use the IncludeAction,ForwardActions,
Suppose if you want to use your servlet application or jsp
application(which are developed previously and u want to
resue it ) should follow the struts MVC pattern then you
can acheieve that using these classes

We use the DispatchAction when you want have to perform
multiple actions through one form

We can use the switchAction when you want to use the
resources from other modules of your struts application

LookupDispatchAction is similer to DispatchAction.

this information is very useful to the guys who has the
intrest to learn struts
All the best.........

Is This Answer Correct ?    17 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can configured action mapping in struts?

581


Difference between struts and spring? Or why use spring, if you are already using struts?

536


What is struts and why it is used?

503


Explain about struts?

555


Explain the core end goal while using java struts?

526






What are construction struts?

513


How does struts2 token work?

530


How an actionform bean is created?

571


What is form bean in struts?

514


Which model components are supported by Struts?

567


What are the benefits of Interceptors in Struts2?

655


What is the default suffix for Struts2 action URI and how can we change it?

524


What is s token?

539


What is the use of reset method of ActionForm class?

573


What is apache struts framework?

524