✔ STRUTS 2 CHAPTERS:-
1. Struts2 Overview
2. Struts2 Architecture
3. Struts2 Configuration Files
4. Action in Struts2
5. Action in Struts2 by using Pojo Class
6. Action in struts2 by Implementing Action Interface
7. Action in Struts2 by Extending Action Support Class
8. Struts2 Hello World Example
9. Multiple Configuration File in Struts2
10. OGNL in Struts2
11. Value Stack in Struts2
12. Interceptors in Struts2
13. Struts2 Execandwait Interceptor
14. Struts2 Custom Interceptor
15. Struts2 Result type
16. Struts2 Redirect result type
17. Struts2 Validation Framework
18. Struts2 Validation by Built in validators
19. Struts2 i18n
20. Struts2 Zero Configuration by convention approach
21. Struts2 Zero Configuration by annotation Approach
22. Dispatch Action Functionality in Struts2
23. Dynamic method invocation in Struts2
24. Struts2 UI Tags
25. Struts2 Control Tags
26. Struts2 Data Tags
27. Struts2 and tiles integration
28. Struts2 and Quartz2 Schedular
29. Struts2 Interview Questions and Answers
1. Struts2 Overview
2. Struts2 Architecture
3. Struts2 Configuration Files
4. Action in Struts2
5. Action in Struts2 by using Pojo Class
6. Action in struts2 by Implementing Action Interface
7. Action in Struts2 by Extending Action Support Class
8. Struts2 Hello World Example
9. Multiple Configuration File in Struts2
10. OGNL in Struts2
11. Value Stack in Struts2
12. Interceptors in Struts2
13. Struts2 Execandwait Interceptor
14. Struts2 Custom Interceptor
15. Struts2 Result type
16. Struts2 Redirect result type
17. Struts2 Validation Framework
18. Struts2 Validation by Built in validators
19. Struts2 i18n
20. Struts2 Zero Configuration by convention approach
21. Struts2 Zero Configuration by annotation Approach
22. Dispatch Action Functionality in Struts2
23. Dynamic method invocation in Struts2
24. Struts2 UI Tags
25. Struts2 Control Tags
26. Struts2 Data Tags
27. Struts2 and tiles integration
28. Struts2 and Quartz2 Schedular
29. Struts2 Interview Questions and Answers
As we discussed how to create a struts application using struts.xml file. Struts framework also provides a way to create a struts application without using struts.xml file. Struts framework provides the annotation to achieve this. A struts application without using struts.xml file is also known as application with Zero Configuration.
Some useful annotations.
1. @Action: It is used for action mapping for execute method or marking a class as action class.
2. @Result: It is used to specify the view screen based on the outcome of execute method.
3. @Results: It is used to define multiple results for an action. It is a collection of results.
4. @RequiredFieldValidator: It is used to perform required validation on the field.
Struts 2 Zero Configuration by annotation approach example:
login.jsp
web.xml
Login.java
login-error.jsp
login-error.jsp
Output:
Enter UserName: jai and Password: 1234
Click on login button.
No comments:
Post a Comment