vinod sir struts 2 part 4

Post on 07-Nov-2014

1.526 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

Struts 2 Database Operations & Struts 2 Architecture.

TRANSCRIPT

Prof. Vinod Pillai.

vinodthebest@gmail.com

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

Thank You

vinodthebest@gmail.com

20Prof. Vinod Pillai

top related