struts introduction

8

Click here to load reader

Upload: muthukumaran-subramanian

Post on 24-May-2015

99 views

Category:

Education


1 download

DESCRIPTION

very basic introduction to struts. the detailed explanation will be uploaded soon

TRANSCRIPT

Page 1: Struts introduction

Struts

Page 2: Struts introduction

Agenda

• Introduction• What is MVC ?• MVC architecture• Why struts ?• Architecture of struts

Page 3: Struts introduction

Introduction

• Apache Struts is an open source framework for web development used by the J2EE developers for developing web applications.

• It was originally created by Craig McClanahan and donated to the Apache Foundation in May, 2000.

• The latest version of struts is 2.3.16.1• Struts uses the MVC model.

Page 4: Struts introduction

What is MVC ?

• Model–view–controller (MVC) is a software architectural pattern for implementing user interfaces.

• It divides a given software application into three interconnected parts.

• M – Model• V – View• C – Controller

Page 5: Struts introduction

MVC architecture

Page 6: Struts introduction

Cont’d

• Model – It contains the codes of application logic and the codes for connecting to the database.

• View – The view is used to as a user interface. It is either a HTML or JSP page.

• Controller – The controller acts as the interface between the user and the model.

Page 7: Struts introduction

Why Struts ?

• Struts uses the MVC model.• The goal of Struts is to separate the model

from the view and the controller.• i.e., struts avoids mixing up of the business

logic or application logic and presentation.• Thus struts are easy to maintain.

Page 8: Struts introduction

Struts Architecture