struts introduction

Post on 24-May-2015

99 Views

Category:

Education

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

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

TRANSCRIPT

Struts

Agenda

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

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.

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

MVC architecture

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.

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.

Struts Architecture

top related