1 IST 210 Organization of Data Database and the Web.

Slides:



Advertisements
Similar presentations
Overview Environment for Internet database connectivity
Advertisements

DT228/3 Web Development WWW and Client server model.
IIS Technologies.
Project 1 Introduction to HTML.
1 Chapter 12 Working With Access 2000 on the Internet.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
INTERNET DATABASE Chapter 9. u Basics of Internet, Web, HTTP, HTML, URLs. u Advantages and disadvantages of Web as a database platform. u Approaches for.
Introduction to Web Database Processing
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
INTERNET DATABASE. Internet and E-commerce Internet – a worldwide collection of interconnected computer network Internet – a worldwide collection of interconnected.
Introduction to Web Interface Technology (CSE2030)
1 XML and Databases. 2 Outline (ambitious) Background: documents (SGML/HTML) and databases (structured and semistructured data) XML Basics and Document.
Chapter 14 Database Connectivity and Web Technologies
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
1st Project Introduction to HTML.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
Chapter ONE Introduction to HTML.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 13 Slide 1 Application architectures.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
INTRODUCTION TO WEB DATABASE PROGRAMMING
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
1 HTML and CGI Scripting CSC8304 – Computing Environments for Bioinformatics - Lecture 10.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
Week 7 Lecture Web Database Development Samuel Conn, Asst. Professor
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
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.
CPS120: Introduction to Computer Science The World Wide Web Nell Dale John Lewis.
11/16/2012ISC329 Isabelle Bichindaritz1 Web Database Application Development.
Introduction to XML. XML - Connectivity is Key Need for customized page layout – e.g. filter to display only recent data Downloadable product comparisons.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Web Programming : Building Internet Applications Chris Bates CSE :
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
1 Welcome to CSC 301 Web Programming Charles Frank.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
1 XML eXtensible Markup Language. 2 XML vs. HTML HTML is a HyperText Markup language HTML is a HyperText Markup language Designed for a specific application,
1 Indexing The syntax for creating a index is: CREATE [UNIQUE] INDEX index_name ON table_name (column1, column2,... column_n) [ COMPUTE STATISTICS ]; Why.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
14 1 Chapter 14 Web Database Development Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
+ 1 XML eXtensible Markup Language. + 2 XML Lecture Adapted from the work of Dr. Praveen Madiraju of Marquette University.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
WEB SERVER SOFTWARE FEATURE SETS
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
XML – Basic Concepts (modified version from Dr. Praveen Madiraju) 2015, Fall Pusan National University Ki-Joune Li.
1 XML eXtensible Markup Language. 2 Introduction and Motivation Dr. Praveen Madiraju Modified from Dr.Sagiv’s slides.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Project 1 Introduction to HTML.
Chapter 1 Introduction to HTML.
Project 1 Introduction to HTML.
Introduction to XHTML.
Chapter 27 WWW and HTTP.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Introduction to World Wide Web
Presentation transcript:

1 IST 210 Organization of Data Database and the Web

IST References ASP Tutorial from MSDN

IST Internet HTML SQL HTML/VB Script/SQL

IST HTML VB Script SQL

IST 210 Create Dynamic Web Applications Static Web application Request with a URL (e.g., Which contains three components: protocol, web server name, and folder path to an HTML page Server simply send back the page From static to dynamic web pages Take user input and respond accordingly Allow access to information stored in a database

IST 210 Web Pages with Database Contents Web pages contain the results of database queries. How do we generate such pages? Common Gateway Interface (CGI) Web server creates a new process when a program interacts with the database. Web server communicates with this program via CGI (Common gateway interface) Program generates result page with content from the database Problem: need to run multiple processes which is not efficient.

IST 210 Application Servers In CGI, each page request results in the creation of a new process  generally inefficient Application server: Piece of software between the web server and the applications Functionality: Hold a set of threads or processes for performance Database connection pooling (reuse a set of existing connections) Integration of heterogeneous data sources Transaction management involving several data sources Session management

IST 210 Other Server-Side Processing Java Servlets: Java programs that run on the server and interact with the server through a well-defined API. JavaBeans: Reusable software components written in Java. Java Server Pages and Active Server Pages: Code inside a web page that is interpreted by the web server

IST Active Server Pages (ASP) ASP is programming model that allows dynamic, interactive Web pages to be created on server. ASP runs in-process with the server, and is optimized to handle large volume of users. When an ‘.asp’ file is requested, Web server calls ASP, which reads requested file, executes any commands, and sends generated HTML page back to browser.

IST Active Server Pages (ASP)

IST ASP Code Combination of three types of syntax: Text HTML tags ASP scripts

IST ASP Scripts ASP scripts can be written in VBScript JavaScript ActiveX Components Client-side vs. Server-Side Client-side scripts downloaded to and execute on the client machine. (Problems: features by not be supported by some browsers) Server-side scripts Run directly on the server and generate data to be viewed by the browser in HTML. No concern for browser capability.

IST ASP Code Script codes are executed by the server Generate HTML, on-the-fly, when requested ASP code is browser independent. ASP code can be viewed at the server using Text Editor Browser can not directly view the source code of a ASP program

IST ActiveX Data Objects (ADO) Programming extension of ASP supported by Microsoft IIS for database connectivity. Supports following key features: Independently-created objects. Support for stored procedures. Support for different cursor types. Batch updating. Support for limits on number of returned rows. Designed as an easy-to-use interface to OLE DB.

IST Getting User Input From a Form Connection – establishing link between application program and database Recordset – contains data returned from a specific action on the database Command – allow you to run commands against a database

IST 210 Extensible Markup Language (XML)

IST 210 Question: What’s the difference between the world of documents and databases?

IST Documents vs Databases Document world > plenty of small documents > usually static > implicit structure section, paragraph > tagging > human friendly > content form/layout, annotation > Paradigms “Save as”, wysiwyg > meta-data author name, date, subject Database world > a few large databases > usually dynamic > explicit structure (schema) > records > machine friendly > content schema, data, methods > Paradigms Atomicity, Concurrency, Isolation, Durability > meta-data schema description

IST What to do with them Documents editing printing spell-checking counting words retrieving searching Database updating cleaning querying

IST The thin line The line between the document world and the database world is not clear. In some cases, both approaches are legitimate. An interesting middle ground is data formats -- of which XML is an example

IST A common form of data extraction John Doe … IST …... John Doe Jane Dee …... Find the names and telephones of all employees in IST

IST Lineage (WWW Consortium) Standard Generalized Markup Language (SGML – Late 1980s) Hypertext Markup Language (HTML – Early 1990s) Extensible Markup Language (XML – Late 1990s) Ease of Use Flexibility

IST Need Doctor want to who wants to send you medical record to a specialist: Patient G. Washington is allergic to penicillin As HTML provides a way for all computers to read Internet documents, but how can a computer read the data?

IST HTML Lingua franca for publishing hypertext on the World Wide Web Designed to describe how a Web browser should arrange text, images and push-buttons on a page. Easy to learn, but does not convey structure. Fixed tag set. Welcome to IST210 Introduction Opening tag Text (PCDATA) Closing tag “Bachelor” tag Attribute nameAttribute value

IST The Structure of XML XML consists of tags and text Tags come in pairs... They must be properly nested good bad (You can’t do in HTML)

IST XML text XML has only one “basic” type -- text. It is bounded by tags e.g. G. Washington is still text XML text is called PCDATA (for parsed character data). It uses a 16-bit encoding. Later we shall see how new types are specified by XML- data

IST XML structure Nesting tags can be used to express various structures. E.g. A tuple (record) : G. Washington (703)

IST XML structure (cont.) We can represent a list by using the same tag repeatedly:...

IST Terminology The segment of an XML document between an opening and a corresponding closing tag is called an element. G Washington (703) (703) element not an element element, a sub-element of

IST XML is tree-like person name tel G Washington (703) (703)

IST Mixed Content An element may contain a mixture of sub- elements and PCDATA Agony Airways US’s favorite airline Data of this form is not typically generated from databases. It is needed for consistency with HTML.

IST A Complete XML Document G Washington (703)

IST 210 Document Type Descriptors Imposing structure on XML documents

IST Document Type Descriptors Document Type Descriptors (DTDs) impose structure on an XML document. There is some relationship between a DTD and a schema The DTD is a syntactic specification.

IST Example: The Address Book MacNiel, John Dr. John MacNiel 1234 Huron Street Rome, OH (321) Exactly one name At most one greeting As many address lines as needed (in order) Mixed telephones and faxes As many as needed

IST Specifying the structure name to specify a name element greet? to specify an optional (0 or 1) greet elements name,greet? to specify a name followed by an optional greet

IST Specifying the structure (cont) addr*to specify 0 or more address lines tel | faxa tel or a fax element (tel | fax)* 0 or more repeats of tel or fax *0 or more elements

IST Specifying the structure (cont) So the whole structure of a person entry is specified by name, greet?, addr*, (tel | fax)*, * This is known as a regular expression.

IST Summary XML is a new data format. Its main virtues are: widespread acceptance and the ability to handle semistructured data (data without schema) The emerging combination of database and XML provide a powerful tool for delivering content over the web