Download - Vinod sir struts 2 part 4
Prof. Vinod Pillai.
http://vinodthebest.wordpress.com
www.youtube.com/vinodthebest
Part – IV
Database.
2Prof. Vinod Pillai
Part – IV : Database.
Database – Insert + Validation + View + Update.
Understanding :
Session Object.
Request Object.
Real Struts 2 Architecture.
Quick Recap of all the topics.
Prof. Vinod Pillai 3
10“Database – Insert + Validation + View + Update”
Our Goal :
To create a Struts2 Final application in we will provide usertwo options:
First : Allow to create a New Account and the data willentered to Database.
Second : Allow user to login into the system and view hisdetails + Update his details.
Major features:
Database connectivity.
HttpServletRequest.
Session.4Prof. Vinod Pillai
Database Output:
5Prof. Vinod Pillai
Final Structure :
6Prof. Vinod Pillai
Index.jsp :
7Prof. Vinod Pillai
Struts.xml :
8Prof. Vinod Pillai
Login Action :
9Prof. Vinod Pillai
Login Action :
10Prof. Vinod Pillai
Login Action :
11Prof. Vinod Pillai
UserClass.java / POJO /Bean:
12Prof. Vinod Pillai
EditUser.jsp :
13Prof. Vinod Pillai
UpdateUserAction.java :
14Prof. Vinod Pillai
UpdateUserAction.java :
15Prof. Vinod Pillai
Real Struts 2 Architecture
16Prof. Vinod Pillai
Conclusion:
17Prof. Vinod Pillai
What is Framework? & MVC.
Struts Architecture.
Setting Up Struts.
Welcome Struts 2 – Application.
Action – POJO.
Multiple Execute method in Action Class.
Major Form Fields.
Validation using validate() & .xml File.
Tiles Plug-in.
Request & Session Object.
Database.
Part – IV : Database.
Database – Insert + Validation + View + Update.
Understanding :
Session Object.
Request Object.
Real Struts 2 Architecture.
Quick Recap of all the topics.
Prof. Vinod Pillai 18
Part – IV
Completed
19Prof. Vinod Pillai