Introduction to Struts

Slides:



Advertisements
Similar presentations
JSP and web applications
Advertisements

Apache Tiles.
Web Development with Karsten Schulz Terp-Nielsen Master Principal Sales Consultant Oracle Denmark.
Apache Struts Technology
Servlets Enterprise Systems Programming. Servlets  Servlets: server-side Java programs that enable dynamic processing of web-based requests  Web-based.
Web MVC-2: Apache Struts Rimon Mikhaiel
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
Struts Basics SSE USTC Qing Ding. Agenda What is and Why Struts? Struts architecture – Controller: Focus of this presentation – Model – View Struts tag.
1 Build a Web Application on J2EE. 2 J2EE Scenario Client – Web Server – EIS Resources Client – Web Server – EIS Resources Client – Application Server.
Objectives:1. Investigate the Web application deployment descriptor 2. Install and deploy Tomcat and struts 3. Design and deploy a struts application Struts.
14-Jul-15 Tomcat. 2 The Apache Jakarta Project The Apache Jakarta Project “creates and maintains open source solutions on the Java platform for distribution.
Apache Struts Technology A MVC Framework for Java Web Applications.
Session-01. Layers Struts 2 Framework The struts 2 framework is used to develop MVC-based web application. Struts 1.0 was released in June The.
Web Applications Basics. Introduction to Web Web features Clent/Server HTTP HyperText Markup Language URL addresses Web server - a computer program that.
Struts 2.0 an Overview ( )
Struts. Agenda Preface Struts and its components An example The architecture required for Struts Applications.
UNIT-V The MVC architecture and Struts Framework.
Lecture 2 - Struts ENTERPRISE JAVA. 2 Contents  Servlet Deployment  Servlet Filters  Model View Controllers  Struts  Dependency Injection.
Web Applications Harry R. Erwin, PhD University of Sunderland CIT304/CSE301.
JDeveloper 10g and JavaServer Faces: High-Performance UIs on the Web Avrom Roy-Faderman Senior Programmer May, 2006.
Design Patterns Phil Smith 28 th November Design Patterns There are many ways to produce content via Servlets and JSPs Understanding the good, the.
Jakarta Struts Presented by Object Computing, Inc. (OCI) Written by Greg Elliott
® IBM Software Group © 2007 IBM Corporation J2EE Web Component Introduction
The DSpace Course Module - Look & Feel Customisation.
Apache Struts RIFE Ruby on Rails Harry R. Erwin, PhD University of Sunderland CIT304/CSE301.
JSF Introduction Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
Case Study + MVC Lec Error Pages By means of the page directive, a JSP can be given the responsibility of an Error page An Error JSP will be called.
Fall CIS 764 Database Systems Design L8. Web ….
J2EE Overview Web Programming CSCI J2EE multi-tier architecture Servlet: Java class loaded into Web server JSP page: enhanced HTML page that is.
Java Web Development with NetBeans IDE -- Kai Qian Chapter 5 JavaServer Faces (JSF) Technology.
JAVA SERVER FACES ADITI RAJORIYA UNI – ar2630. POINTS TO BE DISSCUSED WHAT IS JSF? WHY JSF? ARCHITECTURE JSF VERSIONS UI COMPONENTS JSF STRUCTURE AND.
JSF Framework Java Server Faces Presented by Songkran Totiya (6/10/2014)
Struts Framework Anna Paščenko. What is Struts?  An open source framework for building Java web applications.
Struts 2 introduction. Struts 2 framework Struts 2 A full-featured web application framework for the Java EE platform The Java Servlet API exposes the.
JavaServer Faces (JSF) and Ajax Integration. Agenda 대강의 ( 정말로..) 개요 예제 아키텍트라면..
Model View Controller Architecture of Java Web Applications Dr. M V S Peri Sastry, Ph.D.[BITS-Pilani]
Apache Struts. J2EE Web Application using MVC design pattern Why MVC? Separate components = easier maintenance – Model component holds object data – View.
CS320 Web and Internet Programming Introduction to Java Servlets Chengyu Sun California State University, Los Angeles.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
STRUCTURE OF JSP PRESENTED BY: SIDDHARTHA SINGH ( ) SOMYA SHRIVASTAV ( ) SONAM JINDAL ( )
Modern Programming Language. Web Container & Web Applications Web applications are server side applications The most essential requirement.
Chapter 9 Web Application Design. Objectives Describe the MVC design pattern as used with Web applications Explain the role and responsibilities of each.
10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components.
APACHE STRUTS ASHISH SINGH TOMAR ast2124. OUTLINE Introduction The Model-View-Controller Design Pattern Struts’ implementation of the MVC Pattern Additional.
JSP / Servlets and Beans
Apache Struts Technology A MVC Framework for Java Web Applications.
CS320 Web and Internet Programming Web Application and MVC Chengyu Sun California State University, Los Angeles.
Enterprise Java v050228MVC1 Model, View, Controller Web Architecture.
Struts 2 Development. Topics  Roles in Struts Development  Control Flow  Actions  Struts 2 Views and Target  Struts 2 Custom Tags  Validation 
Deploying Web Applications to Tomcat Server Chun Guo
APACHE TOMCAT WEB SERVER
CS3220 Web and Internet Programming Introduction to Java Servlets
JSP (Java Server Page) JSP is server side technology which is used to create dynamic web pages just like Servlet technology. This is mainly used for implementing.
Introduction to JSP Liu Haibin 12/09/2018.
Knowledge Byte In this section, you will learn about:
Unit 6-Chapter 2 Struts.
Sakai WebApp Structure
Design and Maintenance of Web Applications in J2EE
MSIS 655 Advanced Business Applications Programming
The Model Layer What is Model?
ESIS Consulting LLC (C) ESIS Consulting LLC. All rights reserved
JavaServer Faces: The Fundamentals
CS3220 Web and Internet Programming Introduction to Java Servlets
Directories and DDs 25-Apr-19.
Directories and DDs 21-Jul-19.
Directories and DDs 14-Sep-19.
Struts BY: Tejashri Udavant..
SDMX IT Tools SDMX Registry
Presentation transcript:

Introduction to Struts Apache Struts is a free open-source framework for creating Java web applications. Web applications differ from conventional websites in that web applications can create a dynamic response. Many websites deliver only static pages. A web application can interact with databases and business logic engines to customize a response. Web applications based on JavaServer Pages sometimes commingle database code, page design code, and control flow code. In practice, we find that unless these concerns are separated, larger applications become difficult to maintain. One way to separate concerns in a software application is to use a Model-View-Controller (MVC) architecture. The Model represents the business or database code, the View represents the page design code, and the Controller represents the navigational code.

Two Development Models When the JSP was introduced by Sun, the two models are prescribed for building JSP-based applications. The two models are model1 and model2. Model 1: A request is made to JSP or Servlet and then that JSP or servlet handles all responsibilities for the request, validating data, and generate response.

Two Development Models Model2: it is referred as Model-View-Controller, solves many of the inherent problems with the original model1. In MVC the central servlet known as the controller, recieves all the request for application, the model works with prepared data needed by view and forwards to JSP.

Evolution of Struts Struts are originally created by Craig R. McClanahan and then donated to Jakarta Project of APACHE in 2000. In June 2001 Struts 1.0 was released. In June 2003 Struts 1.1 was released with Java compatibility. In Dec 2004 Struts 1.2 was released with updated framework. In 2006 Struts 1.3 was released with chain of responsibility. Today Strust 2 is new version, based on merger of struts and web work open source framework.

Basic Components of Struts The Struts framework is a rich collection of Java Lib. And can be broken down into the following major components: 1) Base Framework (ActionServlet) 2) JSP tag Libraries (HTML, Bean, Logic, Nested) 3) Tiles plugins 4) Validator plugin

Building a simple Struts Application The simple Helloworld application files: All Struts applications consists of several files, which contains various parts of the Struts program. Some are Java programs files, and other JSP and xml. Followings are the files required: Index.jsp, success.jsp, Helloworld.java, Helloworld.class , web.xml, struts.xml

Building a simple Struts Application Key Requirements: here must be a directory at the root level of the archive named WEB-INF. There must be a Web application deployment descriptor file named web.xml beneath the WEB-INF directory . Any libraries needed by the application should be under a directory called lib located beneath the WEB-INF directory . Any class files needed by the application, which are not already packaged in a .jar file, should be under a directory called classes located beneath the WEB-INF directory.