REVOLUTION TO NEXT GENERATION Struts2.0 20/02/2009 1 Avishek Arang ::

Slides:



Advertisements
Similar presentations
Struts 2.0.
Advertisements

Web Development with Karsten Schulz Terp-Nielsen Master Principal Sales Consultant Oracle Denmark.
Apache Struts Technology
Struts 2 Interceptors By, Srinivas Reddy.S
Chapter 51 Scripting With JSP Elements JavaServer Pages By Xue Bai.
Web MVC-2: Apache Struts Rimon Mikhaiel
MVC Frameworks Alternatives to coding the MVC pattern.
Struts1 Apache Struts Dr Jim Briggs. Struts2 What is Struts? Struts is an open source framework for building Java web applications Supports MVC/Model.
Internet Technologies 1 Master of Information System Management Java Server Faces Model/View/Controller Design Pattern for Web Development Slides.
Struts Basics SSE USTC Qing Ding. Agenda What is and Why Struts? Struts architecture – Controller: Focus of this presentation – Model – View Struts tag.
JavaServer Faces Dr Jim Briggs 1JavaServer Faces.
Java Server Faces Model/View/Controller Design Pattern for Web Development Slides adapted from “Core JavaServer Faces” by Geary and Horstmann and the J2EE.
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.
Session-02. Index. Jsp in Struts 2 Web.xml File in Struts 2.
Web Applications Basics. Introduction to Web Web features Clent/Server HTTP HyperText Markup Language URL addresses Web server - a computer program that.
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
Struts 2.0 an Overview ( )
Introduction to Struts 2.0 Jenny Ni Joey Feng Winddays Wang Hewmmi Zhu Heather Lv Software School,Fudan University 1.
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.
WebWork in Action An introduction to WebWork Patrick A. Lightbody.
JavaServer Faces: The Fundamentals Compiled from Sun TechDays workshops (JSF Basics, Web-Tier Codecamp: JavaServer Faces, Java Studio Creator; IBM RAD)
11. Java-Based Web: JSP, JSF. 2 Motto: Rule 1: Our client is always right Rule 2: If you think our client is wrong, see Rule 1. - Anonymous.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
BEST PRACTICES - Java By Configuration Use global-forwards/results Helps to avoid duplicate jsp files and redundancy forward mapping.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
JDeveloper 10g and JavaServer Faces: High-Performance UIs on the Web Avrom Roy-Faderman Senior Programmer May, 2006.
Basic Struts Architecture Client Server Database Request Response Control View Model Server Struts Framework.
Chapter 7 Java Server Pages. Objectives Explain how the separation of concerns principle applies to JSP Describe the operation and life-cycle of a JSP.
JSF road map (NI) Clientside validation Show problems
© 2006 IBM Corporation IBM WebSphere Portlet Factory Architecture.
Struts2 Plugin Development - Extending Struts2 Justin Yip.
JSF Introduction Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Struts J2EE web application framework “ Model 2 ” Model View Controller Controller Servlet Key features XML metadata Struts taglib Simplified form validation.
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
Fall CIS 764 Database Systems Design L8. Web ….
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
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 MVC Web Software Architecture.
Chính phủ điện tử TS. Phạm Văn Tính Khoa CNTT, ĐH Nông Lâm TP.HCM
Apache Struts. J2EE Web Application using MVC design pattern Why MVC? Separate components = easier maintenance – Model component holds object data – View.
Copyright AlphaCSP Israel 2008 – Web Framework Playoff Seminar 1 Struts2 Reinventing Struts1 Wheel Ori Dar Consultant and Architect, AlphaCSP.
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Spring MVC Essentials Getting started.
© 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.
13 Copyright © 2004, Oracle. All rights reserved. Adding Validation and Error Handling.
11 Copyright © 2004, Oracle. All rights reserved. Customizing Actions.
Struts Framework Day-2 Ashok Chakravarti. DataSource Usage Sample Struts-config.xml …
Struts 2 Introduction.
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.
Singleton Academy, Pune. Course syllabus Singleton Academy Pune – Course Syllabus1.
Chapter 2 Java Struct 2. Content Basic MVC Architecture Struts 2 Overview Struts 2 - Architecture.
SDJ INFOSOFT PVT. LTD. 2 BROWSERBROWSER JSP JavaBean DB Req Res Application Layer Enterprise server/Data Sources.
Apache Struts Technology A MVC Framework for Java Web Applications.
Model View Controller. MVC is the separation of model, view and controller. It's simply a paradigm; an ideal that you should have in the back of your.
Struts 2 Development. Topics  Roles in Struts Development  Control Flow  Actions  Struts 2 Views and Target  Struts 2 Custom Tags  Validation 
An Introduction to and This document is for purely educational purposes.
Unit 6-Chapter 2 Struts.
Introduction to Struts
The Model Layer What is Model?
JavaServer Faces: The Fundamentals
Struts BY: Tejashri Udavant..
Presentation transcript:

REVOLUTION TO NEXT GENERATION Struts2.0 20/02/ Avishek Arang ::

Topics discussed …  Basic features of struts2.0.  Struts2 vs struts1.1.  Architecture of struts2.0.  Basic flow of struts2.0.  How to configure the plugins for struts2 in netbeans IDE.  Some basic components in brief.  Reference 20/02/ Avishek Arang ::

 Page-based Navigation  Built-in Ajax Support: DWR and Dojo  Spring as default inversion of control container  Changed from front-controller servlet to filter  Much better client-side validation support  QuickStart and Annotations  JSF Support  Built-in support for testing with StrutsTestCase Features 20/02/ Avishek Arang ::

Struts2.0 Struts1.1  Action  Action or POJO  Result  struts.xml  FilterDispatcher  Interceptors  Action-validation.xml  Action  ActionForm  ActionForward  struts-config.xml  ActionServlet  RequestProcessor  validation.xml Comparison 20/02/ Avishek Arang ::

Architecture 20/02/2009 Avishek Arang :: 5

 User Sends request.  FilterDispatcher determines the appropriate action.  Interceptors are applied.  Execution of Action.  Output rendering.  Return of Request(reverse order).  Display the result to user. Avishek Arang :: 20/02/ Flow of Struts 2 based Application

Select Tools > Plugins: To configure struts plugins to netbeans IDE. 20/02/ Avishek Arang ::

Configure Plugins: org-netbeans-modules- web-frameworks- struts2.nbm org-netbeans-modules- web-frameworks- struts2lib20011.nbm 20/02/ Avishek Arang ::

 Struts 2 Core components are Action handler, Result Handler and Custom Tags.  Action handler Action handler interacts with other layers.  Result Handler Result handler actually dispatches the request to view.  Custom Tags Custom Tags are used render the dynamic content.  Interceptors The Interceptors are used to specify the "request-processing lifecycle" for an action. Interceptors are configured to apply the common functionalities like workflow, validation etc.. to the request. Interceptors code is executed before and after an Action is invoked  Expression Language(ONGL- Object Graph Notation Language) Avishek Arang :: 20/02/ Struts 2 Core components

/pages/defects.jsp /pages/editDefect.jsp list.action Avishek Arang :: 20/02/ struts.xml

 Used to modularize application.  Always a child of tag.  Only attribute “file” implies the config file.   Order of including files are important.  explicitly include: “struts-default.xml” and the “struts-plugin.xml” files Avishek Arang :: 20/02/

 name - unique.  extends - “struts-default”.  namespace- admin, knowledgecenter, test.  Abstract-if “true” actions configured will not be accessible via the package name. Avishek Arang :: 20/02/

 They provide a way to supply pre-processing and post-processing around the action.  examples include exception handling, file uploading, lifecycle callbacks and validation. view.jsp Avishek Arang :: 20/02/ Interceptor

 Field Summary  static String ERROR The action execution was a failure.StringERROR  static String INPUT The action execution require more input in order to succeed.StringINPUT  static String LOGIN The action could not execute, since the user most was not logged in.StringLOGIN  static String NONE The action execution was successful but do not show a view.StringNONE  static String SUCCESS The action execution was successful. StringSUCCESS  Method Summary String execute() Where the logic of the action is executed.Stringexecute Avishek Arang :: 20/02/ com.opensymphony.xwork2 Interface Action

- - Starting Struts2 by Ian Roughley [free ebook]. - Struts 2 Design and Programming: A Tutorial by Budi Kurniawan. Avishek Arang :: 20/02/ Bibliography