What are different ways to create Action classes in Struts2?



What are different ways to create Action classes in Struts2?..

Answer / Atul Ojha

In Struts2, there are several ways to create action classes:
1. Annotation-based (using `@Action` annotation).
2. XML configuration-based (in the struts.xml file).
3. Both annotation and XML configuration.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Struts Interview Questions

in struts how to use hibernate with struts>

1 Answers   Infosys,


Where can I get help with struts?

1 Answers  


What is the purpose of @result annotation?

1 Answers  


Why use spring, if you are already using struts?

1 Answers  


how can you switch onemodule to another module by switch action class plz explain with exapmle?

1 Answers   Atos Origin, HeadStrong, Satyam,


What is interceptor? And life cycle methods of interceptor?

1 Answers  


what is the difference between model1 and model2 architecture in struts?

3 Answers  


what are the struts tags?

1 Answers  


why we use struts in our web application , means what was drawbacks of servlet ...pls answer

1 Answers   IBM,


how handle when client send multiple request at atime for single servlet

5 Answers   Aditya Birla, IBM,


How we can controlled duplicate form submission in struts?

1 Answers  


Name some of the features of struts2?

1 Answers  


Categories