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

while working struts in intellij 7.0error unable to initialize tld location cache: zip file is closed is displayed anybdy can answer me immdialy .ungert

2156


Why are springs better than struts?

704


What is the purpose of @before annotation?

665


Explain integrate log4j in struts2 application?

667


Which interceptor is responsible for file upload support?

681






What does validation interceptor?

638


How we can configured action mapping in struts?

651


What is the purpose of @urlvalidator annotation?

633


in struts how to use hibernate with struts>

1912


What do you mean by inner class and anonymous class?

680


Do you need an alignment after replacing struts?

624


What is the use of execAndWait interceptor?

651


What inbuilt themes are provided by struts2?

686


Can you give an overview of how a struts application flows?

611


What is the use of web xml in struts2?

615