struts & hibernate ppt

19
A PRESENTATION ON STRUTS & HIBERNATE PANKAJ KUMAR INSTITUTE OF TECHNOLOGY AND MANAGEMANT GWALIOR (MP)

Upload: pankaj-patel

Post on 14-Jul-2015

146 views

Category:

Education


1 download

TRANSCRIPT

Page 1: Struts & hibernate ppt

A PRESENTATION ON

STRUTS & HIBERNATEPANKAJ KUMAR

INSTITUTE OF TECHNOLOGY AND MANAGEMANT

GWALIOR (MP)

Page 2: Struts & hibernate ppt

About Company

Page 3: Struts & hibernate ppt

Services Provided by Company

IT Consultancy and Project Development

Web Development Services with IT training as a strong Line of Business which

includes Technologies like Microsoft , SUN Microsystems, Oracle Testing, IBM-

Mainframe, Autodesk, Multimedia- Adobe.

Page 4: Struts & hibernate ppt

Corporate Training

Brainwork is a pioneer in providing outstanding training in technical

skills and soft skills.

Technical Corporate Training Portfolio:

Microsoft Technologies: MS Office, VC++, VB, SQL Server, SSRS, SSAR,

SSIS, MOSS, ASP.Net, C#,

VB .Net, ADO .Net, etc.

Sun Technologies: Java, J2EE, JBOSS, Struts, EJB, JSF, AJAX, Springs,

Hibernate, Weblogic, etc.

Page 5: Struts & hibernate ppt

Oracle Technologies: Oracle 9i, Oracle 10g, Oracle 11i, Oracle R12 Financial, etc.

Testing Tools: QTP, Load Runner, Quality Center, Selenium etc.

Tally: Tally 9 ERP, ACT and TFAP.

Open Source Technologies: Open Office, Linux, Apache, MySQL, PHP (LAMP), Python, Ruby on

Rails, Scala, Alfresco, etc.

Others: C, C++, Unix, Liferay, LINQ/EAE, Datawarehouse, Mainframe, CMMi, ITIL V3 Foundation

and expert etc.

Page 6: Struts & hibernate ppt

Soft Skill Corporate Training Portfolio:-

Communication

Leadership program

Managerial effectiveness

Quality Work Life

Corporate Etiquette

Team building

Assertive communication

Time and Task management

Presentation skills

Page 7: Struts & hibernate ppt

Struts Agenda

Software Crises

What is Framework

Model1 & Model2

What is Struts?

Why we need it

Features of struts

Controller Elements & it’s Responsibilities

Model Elements & Responsibilities

View Elements & Responsibilities

Page 8: Struts & hibernate ppt

Challenges Exist In Software

Development & Software Crisis

Project must be developed Quickly.

Project must be in High-Quality.

Easy to maintain.

Easy to test.

Better separation of concerns.

Page 9: Struts & hibernate ppt

What is Framework & It’s Advantages

Framework:-

A software framework is a re-usable design for a software system (or subsystem).

A framework is pre-built assembly of components and we can extend it.

Advantages:-

Provides a procedure for the development of Application.

Save developers time.

It also reduces software development & maintenance costs.

Provides low level services that developers can use to speedup developments.

Provides same approach for all developers for developing code & Consistency in software design.

Page 10: Struts & hibernate ppt

Model1 & Model2

Model1:-

In the Model 1 the JSP page is responsible for processing

the incoming request & replying back to the client.

Page 11: Struts & hibernate ppt

Disadvantages of Model 1 Architecture

It does not have separate controller.

This Architecture usually leads to a significant amount of

java code embedded within the JSP page.

Time consuming.

Hard to extend:- It is better for small application not for

large application.

Navigation control is Decentralized :- Every page contains

the logic to determine the next page.

Page 12: Struts & hibernate ppt

Model 2 Architecture

Model2 is based on the MVC(Model View Controller) design pattern.

Model:- Represents data & Business logic of the Application.

View:- Responsible to Display Data. It represent the presentation.

Controller:- Acts as an Interface between View & Model.

Page 13: Struts & hibernate ppt

Model 2 Architecture Advantages &

Disadvantages

Navigation control is Centralized:- Now only controller contains the

logic to determine the next page.

Easy to maintain.

Easy to extend.

Easy to Test.

Better Separation of concerns.

Disadvantages:-

We need to write the controller code self. If we change the controller

code, we need to recompile the class file.

Page 14: Struts & hibernate ppt

What is Struts ? & its Features

An Open source web Application framework based on J2EE & java

which implements the MVC design pattern is called Struts.

Features:-

Configurable MVC components.

POJO based action.

AJAX support.

Integration support.

Various Result types.

Various Tag support.

Theme & Template support.

Page 15: Struts & hibernate ppt

Struts Framework Components

Controller Components:- Direct the Action

Model Components :- Access Data & System

View Components: What the user see

Page 16: Struts & hibernate ppt

The Architecture & Basic flow of Struts 2

Page 17: Struts & hibernate ppt

Basic Flow Description

User sends a request for the action.

Controller Invokes the Action Invocation.

Action Invocation invokes each interceptors and action.

A result is generated.

The result is sent back to the Action Invocation.

A HTTPServletResponse is generated.

Response is sent to the user.

Page 18: Struts & hibernate ppt

References

Tutorialspoint.com

Javatpoint.com

Page 19: Struts & hibernate ppt