Struts BY: Tejashri Udavant..

Slides:



Advertisements
Similar presentations
Web Development with Karsten Schulz Terp-Nielsen Master Principal Sales Consultant Oracle Denmark.
Advertisements

Apache Struts Technology
 Copyright Wipro Technologies JSP Ver 1.0 Page 1 Talent Transformation Java Server Pages.
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.
JSP: JavaServer Pages Juan Cruz Kevin Hessels Ian Moon.
Struts Basics SSE USTC Qing Ding. Agenda What is and Why Struts? Struts architecture – Controller: Focus of this presentation – Model – View Struts tag.
Time Scalability Single User Unlimited Users 100s of Users Several Users PC based Single user Late 1980sNow PC based, file-level locking Single user or.
Layers & Tiers Umair Javed Lec - 41.
Multiple Tiers in Action
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.
Introduction to Java web programming Dr Jim Briggs JWP intro1.
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.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
Java Omar Rana University of South Asia. Course Overview JAVA  C/C++ and JAVA Comparison  OOP in JAVA  Exception Handling  Streams  Graphics User.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Design Patterns Phil Smith 28 th November Design Patterns There are many ways to produce content via Servlets and JSPs Understanding the good, the.
Standalone Java Application vs. Java Web Application
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
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–
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 ….
Webcommerce Computer Networks Webcommerce by Linnea Reppa Douglas Martindale Lev Shalevich.
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.
Chapter 2 An Overview of Servlet and JSP 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.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
JSF Framework Java Server Faces Presented by Songkran Totiya (6/10/2014)
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
Struts Framework Anna Paščenko. What is Struts?  An open source framework for building Java web applications.
Model View Controller Architecture of Java Web Applications Dr. M V S Peri Sastry, Ph.D.[BITS-Pilani]
Enterprise Java Beans. Model 1 J2EE – Web View Model/View/Controller Model View Control Data base Web Server Model One Architecture HTTP Request HTTP.
Apache Struts. J2EE Web Application using MVC design pattern Why MVC? Separate components = easier maintenance – Model component holds object data – View.
Markus Hjort Reaktor Innovations Java Web Development T WWW-palvelun HUT
OOSSE Week 8 JSP models Format of lecture: Assignment context JSP models JSPs calling other JSPs i.e. breaking up work Parameter passing JSPs with Add.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, written in Java code, that.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
1 Copyright © 2004, Oracle. All rights reserved. Oracle Application Development Framework.
Chapter 3 JSP Overview. The Problem with Servlets processing the request and generating the response are both handled by a single servlet class Java programming.
Team Members Tyler Lamb Kirk Olson James Woestman IRP Presentation Client Zirous Inc. Faculty Advisor Tien Nguyen 1.
Implementation Struts Framework for well-architectured web applications Model-View-Controller design pattern.
How Web Database Architectures Work CPS181s April 8, 2003.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
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
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.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
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 
Controlling an Application with Struts
CASE STUDY -HTML,URLs,HTTP
The J2EE Framework Java Technologies External Application.
Introduction to J2EE Architecture
Unit 6-Chapter 2 Struts.
Design and Maintenance of Web Applications in J2EE
Introduction to Struts
Building an Integrable XBRL Portal Daniel Hamm German Central Bank
Distributed System Using Java 2 Enterprise Edition (J2EE)
The Model Layer What is Model?
JavaServer Faces: The Fundamentals
APPLET PROGRAMMING.
Presentation transcript:

Struts BY: Tejashri Udavant.

Preface Problem we faced when designing JSP: Familiar with HTML and expertise in web design (the content, font, color, web page layout etc.) Having Programming knowledge with Java (embedded java code in JSP)

Break down the tasks with Struts

What is Struts Norwegian word meaning ostrich A Java open source framework especially used for web application development. With Struts, developers can following the MVC design pattern to design web application

What is MVC design pattern Input Processing Output Controller Model View Calculation, database operation, connection with remote systems Application screen, web pages

Controller in Struts Called ActionServlet Its functions: - Receive http request from client (Web browser) - Invoke Model part by calling Action objects - Send the JSP file returned by Action objects back to the client

Model component in Struts In Action objects Its functions: - Carrying out business related processing (by itself or other objects) - Determining the next web page to send to the client

View component in Struts Html and JSP files with Struts tags embedded Features provided by Struts tags: - Sophisticated html form handling (validation, error display etc.) - Display localized messages stored in a resource file on web page (message tag) - And many others …

How to get M V C parts work together A configuration file called struts-config.xml in XML format Defines Action classes, Java Beans used in the project Define “virtual” paths to be used in JSP files

An example …<struts-html:form action=“action1”>… In TestWeb1.jsp: …<struts-html:form action=“action1”>… In struts-config.xml: … < action path=“action1” type=“JavaBean1”…>… <forward name=“next1" path="/nextpage1.jsp"/> If changing to use another java bean as Action class in the future,… Same Set .. To be… Then Everything is done

The whole process of a client request Call “action1” Client ActionServlet Action object JavaBean1 request ActionForward next1 find JSP / HTML files nextpage1.jsp

The architecture required for Struts Applications Struts classes / Taglib Java Application Server JSP / Servlet engine