Struts2 Interview Questions and Answers

 I am listing down some of the important Struts2 interview questionswith answers to help you in interview.

  1. What is Struts2?
  2. What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?
  3. What are Struts2 core components?
  4. What is interceptor in Struts2?
  5. Which design pattern is implemented by Struts2 interceptors?
  6. What are different ways to create Action classes in Struts2?
  7. Does Struts2 action and interceptors are thread safe?
  8. Which class is the Front Controller in Struts2?
  9. What are the benefits of Interceptors in Struts2?
  10. What is ValueStack and OGNL?
  11. Name some useful annotations introduced in Struts2?
  12. Provide some important Struts2 constants that you have used?
  13. What is the use of namespace in action mapping in Struts2?
  14. Which interceptor is responsible for mapping request parameters to action class Java Bean properties?
  15. Which interceptor is responsible for i18n support?
  16. What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?
  17. How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?
  18. What is the use of execAndWait interceptor?
  19. What is the use of token interceptor in Struts2?
  20. How can we integrate log4j in Struts2 application?
  21. What are different Struts2 tags? How can we use them?
  22. What is Custom Type Converter in Struts2?
  23. How can we write our own interceptor and map it for action?
  24. What is life cycle of an interceptor?
  25. What is an interceptor stack?
  26. What is struts-default package and what are it’s benefits?
  27. What is the default suffix for Struts2 action URI and how can we change it?
  28. What is the default location of result pages and how can we change it?
  29. How can we upload files in Struts2 application?
  30. What are best practices to follow while developing Struts2 application?
  31. How can we handle exceptions thrown by application in Struts2?
原文地址:https://www.cnblogs.com/hephec/p/4588264.html