Pure Struts web-application header.jsp footer.jsp menu.jsp body … + mybody.jsp layout.jsp struts-config.xml tiles-def.xml classical include in servlet.

Slides:



Advertisements
Similar presentations
1.03 Demonstrate desktop publishing.
Advertisements

Apache Tiles.
Struts Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Struts Portlet Adding an Action Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without.
1 Laying Out Pages with Tiles Source :
Struts 2 Actions By, Srinivas Reddy.S
Main Title Here Additional copy here, additional copy here, additional copy here, additional copy here, additional copy here. ADD YOUR WEB ADDRESS HERE.
Web Development with Karsten Schulz Terp-Nielsen Master Principal Sales Consultant Oracle Denmark.
Apache Struts Technology
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
 Copyright Wipro Technologies JSP Ver 1.0 Page 1 Talent Transformation Java Server Pages.
Introduction Headers & Footers. You will learn how to: Create, Format, Edit and Delete Create Different Header/Footer in a Document Create a First Page.
1 After completing this lesson, you will be able to: Add a header and footer to a worksheet. Change margins and center a worksheet. Change the orientation.
Presentation Title Your Name Organisation and Telephone Number.
Magnolia Templating. Header Footer Menu Collection Collection Page Template (JSP) Page Properties Page + TemplateContent.
1 After completing this lesson, you will be able to: Adjust page margin settings. Insert a forced page break. Set paragraph alignment, indentation, and.
Mark Dixon Page 1 07 – Reports. Mark Dixon Page 2 Session Aims & Objectives Aims –To use reports to produce more readable documents Objectives, by end.
Struts Basics SSE USTC Qing Ding. Agenda What is and Why Struts? Struts architecture – Controller: Focus of this presentation – Model – View Struts tag.
DT228/3 Web Development JSP: Directives and Scripting elements.
Chapter 8 Working on a Presentation. Formatting and Editing Formatting Layouts Formatting Text Slide Master Graphics Header and Footer Slide Transitions.
Java Server Pages B.Ramamurthy. Java Server Pages Servlets are pure Java programs. They introduce dynamism into web pages by using programmatic content.
CASTLEHEAD HIGH SCHOOL WEBSITE Today you will learn how to :- Log-on to the website Website capability Web page layout Add Images/Text/Title/Files/Link.
® IBM Software Group © 2006 IBM Corporation JSF Menu Component How to create and use JSF Menu components to add custom static and programmatic (dynamic)
Lecture 2 - Struts ENTERPRISE JAVA. 2 Contents  Servlet Deployment  Servlet Filters  Model View Controllers  Struts  Dependency Injection.
DSpace XML UI Project Texas A&M University Digital Initiatives, Research and Technology Scott Phillips, Cody Green, Alexey Maslov, Adam Mikeal, Brian Surratt,
Overview of JSP Technology. The need of JSP With servlets, it is easy to – Read form data – Read HTTP request headers – Set HTTP status codes and response.
® IBM Software Group © 2006 IBM Corporation Display contents of a Data Table in Excel right from the browser – No POI needed This section describes how.
JBoss Developer Studio. JBoss Developer Studio provides a certified open source development environment that includes and integrates: Eclipse Eclipse.
Step-by-Step Legacy Migration with Aranea Jevgeni Kabanov R&D lead, Aranea project lead Webmedia, Ltd.
MarketMaker Training Video 2 of 5 Tour of the Home Page Layout.
How to make a powerpoint Anthony Juliano Handout by Donovan Sra. Torna, period 4.
JavaServer Faces Jeff Schmitt October 5, Introduction to JSF Presents a standard framework for building presentation tiers for web applications.
® IBM Software Group © 2006 IBM Corporation Programmatically Rendering and Hiding JSF Controls This section describes how to hide and show JSF controls.
JSF Introduction Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
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.
Header and Footer Microsoft Word. Header and Footer Repeating Elements Appear on every page Examples: –Page Numbers –Chapter Numbers –Chapter Names –Look.
Java Web Development with NetBeans IDE -- Kai Qian Chapter 5 JavaServer Faces (JSF) Technology.
PRINTING & PAGE BREAKS 1 Nolan Tomboulian Tomboulian.Wikispaces.com.
CSC 2720 Building Web Applications Frameworks for Building Web Applications.
Click once to display answer; click the answer to return to the question board Welcome to Office Jeopardy (Word edition) Grauer and Barber
Fall 2015 Purpose  Presentation software was developed to replace the original process used for creating presentations.
Page 1 Controller Action2.java Struts- config. xml Mappings Business Logic Layer Data Layer View Layer Business Bean 1 Jsp Engine Jsp 1 Action3.java Action4.java.
Apache Struts. J2EE Web Application using MVC design pattern Why MVC? Separate components = easier maintenance – Model component holds object data – View.
Web Design Part I. Click Menu Site to create a new site root.
CSCI 6962: Server-side Design and Programming Facelets and User Interface Design.
Basic Portlet Copyright © 2000 – 2007 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Implementation Struts Framework for well-architectured web applications Model-View-Controller design pattern.
CSI 3125, Preliminaries, page 1 JSP (Java Server Pages)
1 Java Server Pages A Java Server Page is a file consisting of HTML or XML markup into which special tags and code blocks are inserted When the page is.
Document Control Template Editors Brad Adamczyk Template Editor Bands Bands create document layout Header, data, footer Order not critical.
Mr. Rouda’s CSCI 101 sections. Format of Every Page my page this is the body.
 Java Server Pages (JSP) By Offir Golan. What is JSP?  A technology that allows for the creation of dynamically generated web pages based on HTML, XML,
Java Server Pages. 2 Servlets The purpose of a servlet is to create a Web page in response to a client request Servlets are written in Java, with a little.
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.
Word 2010 Headers and Footers You can make your document look professional and polished by utilizing headers and footers. The header is a section of the.
PYTHON FUNCTIONS. What you should already know Example: f(x) = 2 * x f(3) = 6 f(3)  using f() 3 is the x input parameter 6 is the output of f(3)
Extend Office clients across platforms using web technologies. Office Add-ins.
Preface IIntroduction Course Objectives I-2 Course Content I-3 1Introduction to Oracle Reports Developer Objectives 1-2 Business Intelligence 1-3 Enterprise.
How to use this template
Unit 6-Chapter 2 Struts.
How to use this template
Characteristics of documents
2.03 Demonstrate desktop publishing.
The Model Layer What is Model?
Janet L. Ochs Tompkins Cortland Community College
Fall 2016 Microsoft PowerPoint.
JavaServer Faces: The Fundamentals
The need for server pages
MS PowerPoint.
Presentation transcript:

Pure Struts web-application header.jsp footer.jsp menu.jsp body … + mybody.jsp layout.jsp struts-config.xml tiles-def.xml classical include in servlet response classical include in servlet response

Pure Struts web-application When an action forwards to a Tiles page The top-level template (layout.jsp) is played and runs the include of the different sections (header, body,..) Consequences There is no jsp that is capable of totally displaying the "final" web page - only the (Tiles)RequestProcessor is able to do it Calling "layout.jsp" will fail Calling "body.jsp" will partially succeed

Struts-faces web-application header.jsp footer.jsp menu.jsp body + myJsfPage.jsp layout.jsp <forward name="success" path="/faces/myJsfPage.jsp"/> struts-config.xml tiles-def.xml … <bean:write name="body" filter="false" /> <bean:write name="body" filter="false" />

Struts-faces web-application Action-forwards refer to physical jsp page Exactly like a non-Tiles Struts application No more possible to foward to a logical Tiles page Consequences Every jsp should first insert the desired layout (i.e. the Tiles definition) then enclose the variable parts (such as its body) as parameters of the specified layout insertion The jsps are now capable of totally rendering the "final" web page Calling "myJsfPage.jsp" (as JSF is used to do) will succeed