Coypright (c) Ning Chen, Ph.D. 20011 CPSC 425 Java Enterprise Application Programming Presented by Ning Chen, Ph.D. Chair/Professor Department of Computer.

Slides:



Advertisements
Similar presentations
CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
Advertisements

XML and Enterprise Computing. What is XML? Stands for “Extensible Markup Language” –similar to SGML and HTML –document “tags” are used to define content.
Apache Struts Technology
 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
An Introduction to XML Based on the W3C XML Recommendations.
Extensible Markup Language Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
XHTML 16-Apr-17.
XML Extensible Markup Language Standard supported by W3C (World Wide Web Consortium) HTML – End user oriented (presentation) XML – Application oriented.
Configuring web servers and web applications 1. 2 Server configuration vs. application configuration A web server may run several web application Server.
1 XML: Document Type Definitions 2 Road Map  Introduction to DTDs  What’s a DTD?  Why are they important?  What will we cover?  Our First DTD 
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Java 2 – Enterprise Edition Kevin J. LaFata April 21, 2003 UM – St. Louis.
1 Build a Web Application on J2EE. 2 J2EE Scenario Client – Web Server – EIS Resources Client – Web Server – EIS Resources Client – Application Server.
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
XML Technologies and Applications Rajshekhar Sunderraman Department of Computer Science Georgia State University Atlanta, GA 30302
Objectives:1. Investigate the Web application deployment descriptor 2. Install and deploy Tomcat and struts 3. Design and deploy a struts application Struts.
Apache Struts Technology A MVC Framework for Java Web Applications.
Creating a.war file W(eb) AR(chive). Creating a.war file The following article may contain actual software programs in source code form. This source code.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Jennifer Widom XML Data DTDs, IDs & IDREFs. Jennifer Widom DTDs, IDs & IDREFs “Well-Formed” XML Adheres to basic structural requirements Single root element.
Web Applications Basics. Introduction to Web Web features Clent/Server HTTP HyperText Markup Language URL addresses Web server - a computer program that.
Java Enterprise Edition Java Web Development Structure of a web project Introduction to Web Applications The first project Introduction to Java Web Development.
UNIT-V The MVC architecture and Struts Framework.
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
XP The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 140 Internet Tools Instructor: Enoch E. Damson.
16-1 The World Wide Web The Web An infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that information.
XML: Overview MIS 181.9: Service Oriented Architecture 2 nd Semester,
CS441 CURRENT TOPICS IN PROGRAMMING LANGUAGES LECTURE 5_1 George Koutsogiannakis/ Summer
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Introduction to XML. XML - Connectivity is Key Need for customized page layout – e.g. filter to display only recent data Downloadable product comparisons.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
August Chapter 2 - Markup and Core Concepts Learning XML by Erik T. Ray Slides were developed by Jack Davis College of Information Science and Technology.
WHAT THE HELL IS XML?. What the Hell is XML? What the hell is XML?  Markup Language  Derived from SGML (Standardized General Markup Language)  Describes.
What is XML?  XML stands for EXtensible Markup Language  XML is a markup language much like HTML  XML was designed to carry data, not to display data.
Introduction to World Wide Web Authoring © Directorate of Information Systems and Services University of Aberdeen, 1999 IT Training Workshop.
J2EE Overview Web Programming CSCI J2EE multi-tier architecture Servlet: Java class loaded into Web server JSP page: enhanced HTML page that is.
WEB BASED DATA TRANSFORMATION USING XML, JAVA Group members: Darius Balarashti & Matt Smith.
Web Technologies COMP6115 Session 4: Adding a Database to a Web Site Dr. Paul Walcott Department of Computer Science, Mathematics and Physics University.
1 Introduction to XML XML stands for Extensible Markup Language. Because it is extensible, XML has been used to create a wide variety of different markup.
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
XML for Text Markup An introduction to XML markup.
XML Design Goals 1.XML must be easily usable over the Internet 2.XML must support a wide variety of applications 3.XML must be compatible with SGML 4.It.
Jennifer Widom XML Data Introduction, Well-formed XML.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
The Web Wizard’s Guide to HTML Chapter One World Wide Web Basics.
Assignment of JAVA id : BSSE-F10-M-10-JAVA1 Overview of J2EE/Session 2/Slide 1 of 38.
Structured Documents - XML and FrameMaker 7 Asit Pant.
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
Java Enterprise Edition Programming Page 1 of 9Configuring Servlets Web Application Context Name  In multiple web applications, a “context name” is used.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
1/30/20161 Introduction to Web Services Bina Ramamurthy
Modern Programming Language. Web Container & Web Applications Web applications are server side applications The most essential requirement.
 2003 Prentice Hall, Inc. All rights reserved Deploying a Web Application ( may include.war )
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Apache Struts Technology A MVC Framework for Java Web Applications.
XML 1.Introduction to XML 2.Document Type Definition (DTD) 3.XML Parser 4.Example: CGI Gateway to XML Middleware.
Advanced Accounting Information Systems Day 28 Introduction to XBRL October 30, 2009.
XML BASICS and more…. What is XML? In common:  XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed.
The Object-Oriented Thought Process Chapter 11
Introduction to JSP Liu Haibin 12/09/2018.
Knowledge Byte In this section, you will learn about:
Unit 6-Chapter 2 Struts.
Web Programming Maymester 2004
XML Data Introduction, Well-formed XML.
JavaServer Faces: The Fundamentals
XML Outline 1 XML 2 DTD.
Presentation transcript:

Coypright (c) Ning Chen, Ph.D CPSC 425 Java Enterprise Application Programming Presented by Ning Chen, Ph.D. Chair/Professor Department of Computer Science California State University, Fullerton Fall 2002 Module XML

Coypright (c) Ning Chen, Ph.D XML [Source: Mastering Enterprise JavaBeans by Ed Roman] The Extensible Markup Language (XML) is a universal standard for structuring content in electronic documents. XML is extensible, enabling business to add new structure to their documents as needed. The XML standard does not suffer the version control problems of other markup languages such as HTML, because it has no predefined tags. Rather, with XML you define your own tags for your business needs. This makes XML the ideal document format for transferring business data electronically, and it has a wide variety of other applications as well.

Coypright (c) Ning Chen, Ph.D Benefits of XML [Source: Mastering Enterprise JavaBeans by Ed Roman] XML is simple and easy to use XML is an open, internet-standard XML is human readable XML has massive industry support behind it XML has great tools available

Coypright (c) Ning Chen, Ph.D XML Concept [Source: Mastering Enterprise JavaBeans by Ed Roman] An XML document example Year 1984 George Orwell 268 The Catcher in The Rye J. D. Salinger 249

Coypright (c) Ning Chen, Ph.D XML Concept [Source: Mastering Enterprise JavaBeans by Ed Roman] Prolog: XML Elements: The Catcher in The Rye Attributes: The Root Element: (There are others that are not covered here.)

Coypright (c) Ning Chen, Ph.D XML Parsers [Source: Mastering Enterprise JavaBeans by Ed Roman] An XML parser is a program that reads in an XML document and verifies whether it is well formed. A not well-formed example: Year 1984 George Orwell 268

Coypright (c) Ning Chen, Ph.D XML DTDs [Source: Mastering Enterprise JavaBeans by Ed Roman] DTD – Document type definition Valid Documents: An XML document is valid if it satisfies the structural rules laid out in its corresponding DTD.

Coypright (c) Ning Chen, Ph.D XML DTDs [Source: Mastering Enterprise JavaBeans by Ed Roman] A sample XML DTD: <!DOCTYPE library [ ]>

Coypright (c) Ning Chen, Ph.D XML DTDs [Source: Mastering Enterprise JavaBeans by Ed Roman] An XML validating parser is a program that checks that an XML document is valid according to its DTD.

Coypright (c) Ning Chen, Ph.D What Is the config.xml File? [Source: edocs.bea.com] The config.xml file is an XMLdocument that describes the configuration of an entire Weblogic Server domain. The config.dtd Document Type Definition (DTD) describes the content and structure of the config.xml file. The DTD describes the valid XML tags, the tag order, whether the tags are optional, the type of data contained within the tags, the tag attributes, the attribute values, and so on.

Coypright (c) Ning Chen, Ph.D Using Deployment Descriptors to Configure and Deploy Servlets [Source: edocs.bea.com] The first deployment descriptor, web.xm l, is defined in the Servlet 2.2 specification from Sun Microsystems and provides a standardized format that describes the Web Application. The second deployment descriptor, weblogic.xm l,isa WebLogic-specific deployment descriptor that maps resources defined in the web.xml file to resources available in WebLogic Server, defines JSP behavior, and defines HTTP session parameters.

Coypright (c) Ning Chen, Ph.D web.xml (Web Application Deployment Descriptor) In the Web Application deployment descriptor you define the following attributes for HTTP servlets: Servlet name Java class of the servlet servlet initialization parameters Whether or not the init() method of the servlet is executed when WebLogic Server starts URL pattern which, if matched, will call this servlet Security MIME type Error pages References to EJBs References to other resources

Coypright (c) Ning Chen, Ph.D Directory Structure [Source: edocs.bea.com]

Coypright (c) Ning Chen, Ph.D WEB.XML Location

Coypright (c) Ning Chen, Ph.D WEB.XML Build Location

Coypright (c) Ning Chen, Ph.D WEB.XML HelloWorldServlet examples.servlets.HelloWorldServlet HTTPPostServlet examples.servlets.HTTPPostServlet

Coypright (c) Ning Chen, Ph.D WEB.XML HelloWorldServlet /HelloWorldServlet/* HTTPPostServlet /HTTPPostServlet/*