Vinod sir struts 2 part 4
-
Upload
vinod-pillai -
Category
Technology
-
view
1.526 -
download
1
description
Transcript of Vinod sir struts 2 part 4
![Page 1: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/1.jpg)
Prof. Vinod Pillai.
http://vinodthebest.wordpress.com
www.youtube.com/vinodthebest
![Page 2: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/2.jpg)
Part – IV
Database.
2Prof. Vinod Pillai
![Page 3: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/3.jpg)
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
![Page 4: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/4.jpg)
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
![Page 5: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/5.jpg)
Database Output:
5Prof. Vinod Pillai
![Page 6: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/6.jpg)
Final Structure :
6Prof. Vinod Pillai
![Page 7: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/7.jpg)
Index.jsp :
7Prof. Vinod Pillai
![Page 8: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/8.jpg)
Struts.xml :
8Prof. Vinod Pillai
![Page 9: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/9.jpg)
Login Action :
9Prof. Vinod Pillai
![Page 10: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/10.jpg)
Login Action :
10Prof. Vinod Pillai
![Page 11: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/11.jpg)
Login Action :
11Prof. Vinod Pillai
![Page 12: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/12.jpg)
UserClass.java / POJO /Bean:
12Prof. Vinod Pillai
![Page 13: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/13.jpg)
EditUser.jsp :
13Prof. Vinod Pillai
![Page 14: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/14.jpg)
UpdateUserAction.java :
14Prof. Vinod Pillai
![Page 15: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/15.jpg)
UpdateUserAction.java :
15Prof. Vinod Pillai
![Page 16: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/16.jpg)
Real Struts 2 Architecture
16Prof. Vinod Pillai
![Page 17: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/17.jpg)
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.
![Page 18: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/18.jpg)
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
![Page 19: Vinod sir struts 2 part 4](https://reader034.fdocuments.us/reader034/viewer/2022051322/545cacadb0af9fa42c8b481d/html5/thumbnails/19.jpg)
Part – IV
Completed
19Prof. Vinod Pillai