Struts Examples

1. Develop Struts First Application

Step-1 :Build Liabrary path

Step-2 :Add the Library in the Deployment Assembly

Step-3 :Entry in Web.xml

Step-4 :HelloAction DTO class

Step-5 :Hello.jsp file

Step-6 :Struts.xml file

Step-7 :Output at Web Browser

Step-8 :Login Page Demo File

Step-9 :Login.jsp File

Step-10 :LoginAction class file

Step-11 :Entry Welcome.jsp File

Step-12 :Error.jsp File

Step-13 :Struts.xml new entry

2. Bootstrap in Struts

Login.jsp

LoginAction class file

Struts.xml

3. To enable the IOC in Struts

LoginAction class file

4.Interceptor

Entry in Alias.jsp file

Entry in AliasAction.java file

Entry in Struts.xml file

Entry in Application Resources property file

Entry in Struts property file

5. Execute and Wait in Interceptor

Entry in Index.jsp file

Entry of Execute method in LoginAction class file

Entry Wait.jsp file

Entry Struts.xml file

6.Exception Handling in Struts

Entry in Login.jsp file

Entry in LoginAction class file

Entry in Struts.xml file

Entry in Exception.jsp file

Entry in MyInterceptor class file

Entry in Struts.xml file

7. Validation Using XML Meta-Data

Entry in AddEmployee.jsp file

Entry in AddEmployeeAction class file

Entry in AddEmployeeActionValidation.xml file

8. Validation Using Programmatic

Entry in LoginAction class file

Make different Language property files

DE Language property files

FR Language property files

Entry in Struts property files

Entry in Login.jsp files

Steps to configure Language

Control Tags <s:if><s:iterator>

Entry in LoginAction class file

Entry in Welcome.jsp files