Struts 2.x Model Driven Action – Using Netbeans IDE

The following example describes the use of Struts 2.x Model Driven Action – Using Netbeans IDE and uses Struts 2.x ActionSupport class and ModelDriven, Preparable and ServletRequestAware interfaces to depict the use of Model Driven Action in Struts 2.x (Java).

To perform this example create a Struts 2.x project using Netbeans IDE.

Project Tree :
project_structure

1. index.jsp

2. success.jsp

3. Data.java

4. One.java

Output:
Output1
Output2