_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.

Slides:



Advertisements
Similar presentations
The Web: an architectural view. Browser Render HTML Get URL Send HTML Get HTML file HTTPD File System The primitive Web model.
Advertisements

Overview Environment for Internet database connectivity
Lecture plan Information retrieval (from week 11)
1 CGICGI Common Gateway Interface Server-side Programming Lecture.
DT228/3 Web Development WWW and Client server model.
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.
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.
DT211/3 Internet Development Application Internet Development Application.
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)
Multiple Tiers in Action
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
Active Server Pages Chapter 1. Introduction Understand how browsers and servers interacted when the Web was young Understand what early Internet and intranet.
CGI and Perl MSc Publishing on the WWW. What is CGI ? (1) User Buying and selling Playing games Customised web pages Developer Means to run external programs.
Apache Tomcat Server Typical html Request/Response cycle
1 CS6320 – Why Servlets? L. Grewe 2 What is a Servlet? Servlets are Java programs that can be run dynamically from a Web Server Servlets are Java programs.
Introduction to Web Interface Technology (CSE2030)
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
Web-based Software Development - An introduction.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
Server-side Scripting Powering the webs favourite services.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Introduction to Internet Programming (Web Based Application)
11/16/2012ISC329 Isabelle Bichindaritz1 Web Database Application Development.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Fundamentals of Database Chapter 7 Database Technologies.
20-753: Fundamentals of Web Programming 1 Lecture 1: Introduction Fundamentals of Web Programming Lecture 1: Introduction.
Working with scripts. HTTP Was too limited Not dynamic.
Java CGI Lecture notes by Theodoros Anagnostopoulos.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
Chapter 6 Server-side Programming: Java Servlets
1 Welcome to CSC 301 Web Programming Charles Frank.
1 CS122B: Projects in Databases and Web Applications Spring 2015 Notes 03: Web-App Architectures Professor Chen Li Department of Computer Science CS122B.
_______________________________________________________________________________________________________________ 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)
Overview Web Session 3 Matakuliah: Web Database Tahun: 2008.
INTRODUCTION TO WEB APPLICATION Chapter 1. In this chapter, you will learn about:  The evolution of the Internet  The beginning of the World Wide Web,
Server-side Programming The combination of –HTML –JavaScript –DOM is sometimes referred to as Dynamic HTML (DHTML) Web pages that include scripting are.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
Web Technologies Lecture 8 Server side web. Client Side vs. Server Side Web Client-side code executes on the end-user's computer, usually within a web.
Java for networking Module Introduction Data Communications Communication architecture Application.
Interactive Web Tehcnologies Teppo Räisänen LIIKE/OAMK 2011.
Fall 2000C.Watters1 World Wide Web and E-Commerce Servers & Server Side Processing.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
UMass Lowell Computer Science Java and Distributed Computing Prof. Karen Daniels Fall, 2000 Lecture 21 Java Servlets Wed. 11/22/00 based on material.
Display Page (HTML/CSS)
Lect5.ppt - 02/23/06 CIS 4100 Systems Performance and Evaluation Lecture 6 by Zornitza Genova Prodanoff.
Fall 2000C.Watters1 World Wide Web and E-Commerce Servers & Server Side Processing.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
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.
CX Introduction to Web Programming
Section 6.3 Server-side Scripting
Servlet Fudamentals.
Web App vs Mobile App.
Introduction to Servlets
Client-Server Model: Requesting a Web Page
Presentation transcript:

_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1  Wiley and the book authors 2001 E-Commerce: Fundamentals and Applications Chapter 4 : Server-Side Programming I Servlet Fundamentals

_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications2  Wiley and the book authors 2001 Outline Common server-side programming techniques

_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications3  Wiley and the book authors 2001 Revisiting the Three-tier Model Web-based e-commerce applications are usually built according to the “Three-tier Model” (Fig. 4.1), which includes: The First-tier: Web Client  Discussed in Chapter 3 The Second-tier: Server-side Application (SSA)  Discussed in this chapter The Third-tier: Database Management Systems (DBMS)  Discussed in Chapter 5

_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications4  Wiley and the book authors 2001 Three-Tier Model (Fig. 4.1) Database Cluster Client Browser First-tier : Web Clients Second-tier : Server-side Web Applications Web Server Application Server Third-tier (DBMS) : Database Cluster(s) SQL Server Other databases Oracle databases DB2 databases Internet Database Connectivity

_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications5  Wiley and the book authors 2001 Server-side programming technologies There are numerous ways to implement server- side applications. Common examples include: CGI (Common Gateway Interface) ASP (Active Server Page) Java Servlets PHP, Perl, & other server programming languages

_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications6  Wiley and the book authors 2001 Common Gateway Interface (CGI) Early Web page designs were “static” in the sense that a client can only request for a static HTML document from the Web server (Fig. 4.2). Later, CGI programming techniques were introduced to remove this constraint by providing dynamic Web pages via server-side interaction, as shown in Fig. 4.3.

_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications7  Wiley and the book authors 2001 Static Web Page Retrieval (Fig. 4.2)  HTTP Request  HTTP Document  Retrieve Document  Request for Web Document Web Documents Web Browser Web Server

_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications8  Wiley and the book authors 2001 CGI-based Web Application (Fig. 4.3)  Get Data  HTTP Request  HTTP Document  Output (HTML)  HTML forms to invoke CGI scripts CGI Scripts/ Applications Web Browser Web Server Database  Return data

_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications9  Wiley and the book authors 2001 Common Gateway Interface (CGI) Fig. 4.3 explains the retrieval of a static Web page. The Web browser goes to the designated URL on a specific Web server to retrieve the required static HTML document when it receives a client request. Note the content is independent of the request, in the sense, everyone who makes a request to that particular URL gets the same document.

_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications10  Wiley and the book authors 2001 Active Server Page (ASP) ASP is a "scripting" technique that runs on Web servers rather than Web clients.This contrasts with VBScript and JavaScript which run on web clients. It basically generates HTML documents for the Web client. Execution of the ASP code by the server returns the corresponding HTML document to the client. Fig. 4.4 shows the schematic diagram of ASP model.

_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications11  Wiley and the book authors 2001 ASP Model (Fig. 4.4) ASP Engine  HTTP Request  HTTP Document Web Browser Web Server Database

_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications12  Wiley and the book authors 2001 Disadvantages of CGI programs Each new request activates a new process to run the CGI program Creating a process requires time and resource so CGI programs is not as scaleable a solution Also, CGI programs may raise security problems.

_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications13  Wiley and the book authors 2001 Java Servlet A servlet is a small piece of server-side application, which can be viewed as the server- side analog of an applet. In a typical servlet application, a servlet-enabled Web server receives an HTTP request from the client. It then forwards the request to the servlet engine for performing the necessary operations as specified by the program. Finally it returns a response (e.g., HTML document) to the client via the Web server (Fig. 4.5)

_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications14  Wiley and the book authors 2001 Typical Web-based Servlet Interaction (Fig. 4.5) Servlet Engine HTTP Request HTTP Response Web Browser Web Server Database