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

What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

576


What is the purpose of @before annotation?

583


What is the procedure of operation of a form tag?

550


Explain about token feature in struts?

551


What is java struts?

536






What is the front controller in struts2?

498


Explain about the tag?

623


What is interceptor struts2?

530


What are action errors and error and what are the consequences they impose?

561


What is action servlet in struts?

535


What is the difference between validation.xml and validator-rules.xml files in struts validation framework?

613


What is the purpose of action-mappings tag in struct-config.xml?

586


If the framework doesn’t do what I want, can I request that a feature be added?

497


What are the pros of struts 2?

555


What is the purpose of @intrangefieldvalidator annotation?

852