+ All Categories
Home > Technology > Vinod sir struts 2 part 4

Vinod sir struts 2 part 4

Date post: 07-Nov-2014
Category:
Upload: vinod-pillai
View: 1,526 times
Download: 1 times
Share this document with a friend
Description:
Struts 2 Database Operations & Struts 2 Architecture.
Popular Tags:
20
Prof. Vinod Pillai. [email protected] http://vinodthebest.wordpress.com www.youtube.com/vinodthebest
Transcript
Page 1: Vinod sir struts 2   part 4

Prof. Vinod Pillai.

[email protected]

http://vinodthebest.wordpress.com

www.youtube.com/vinodthebest

Page 2: Vinod sir struts 2   part 4

Part – IV

Database.

2Prof. Vinod Pillai

Page 3: Vinod sir struts 2   part 4

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

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

Database Output:

5Prof. Vinod Pillai

Page 6: Vinod sir struts 2   part 4

Final Structure :

6Prof. Vinod Pillai

Page 7: Vinod sir struts 2   part 4

Index.jsp :

7Prof. Vinod Pillai

Page 8: Vinod sir struts 2   part 4

Struts.xml :

8Prof. Vinod Pillai

Page 9: Vinod sir struts 2   part 4

Login Action :

9Prof. Vinod Pillai

Page 10: Vinod sir struts 2   part 4

Login Action :

10Prof. Vinod Pillai

Page 11: Vinod sir struts 2   part 4

Login Action :

11Prof. Vinod Pillai

Page 12: Vinod sir struts 2   part 4

UserClass.java / POJO /Bean:

12Prof. Vinod Pillai

Page 13: Vinod sir struts 2   part 4

EditUser.jsp :

13Prof. Vinod Pillai

Page 14: Vinod sir struts 2   part 4

UpdateUserAction.java :

14Prof. Vinod Pillai

Page 15: Vinod sir struts 2   part 4

UpdateUserAction.java :

15Prof. Vinod Pillai

Page 16: Vinod sir struts 2   part 4

Real Struts 2 Architecture

16Prof. Vinod Pillai

Page 17: Vinod sir struts 2   part 4

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

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

Part – IV

Completed

19Prof. Vinod Pillai

Page 20: Vinod sir struts 2   part 4

Thank You

[email protected]

20Prof. Vinod Pillai


Recommended