Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Struts introduction

725 views

Published on

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

Published in: Education
  • Be the first to comment

  • Be the first to like this

Struts introduction

  1. 1. Struts
  2. 2. Agenda • Introduction • What is MVC ? • MVC architecture • Why struts ? • Architecture of struts
  3. 3. 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.
  4. 4. 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
  5. 5. MVC architecture
  6. 6. 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.
  7. 7. 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.
  8. 8. Struts Architecture

×