Chapter 01 - Introduction To Web Applications
Chapter 01 - Introduction To Web Applications
NET
by Andy Gravell and David Parsons
Learning Objectives
Look at what web applications do Look at the evolution of the Internet and the World Wide Web Explain important Internet and Web technologies Look at web application architectures Introduce the concepts of the Web 2.0 and AJAX
Cengage Learning 2010
Web based companies like Yahoo and Google are as famous as Coca Cola and Virgin We expect all the organisations that we deal with to have a web presence We expect to be able to manage our money, book travel and purchase goods and services without having to step away from the computer
Cengage Learning 2010
Web applications rely on both the Internet and the World Wide Web
They are not the same thing The Internet predates the web by more than 10 years
In the late 1970s the US Advanced Research Projects Agency (ARPA) built the ARPAnet:
Originally linked a small number of research sites Same core technologies as the much bigger Internet that followed
The World Wide Web (WWW or W3) dates from the 1990s A hypertext based collection of multimedia information accessible via the Internet
It soon became popular for leisure applications. It has since become a key element in business, not only for .COMs but as part of the IT strategy of a wide range of organisations.
Invented by Tim Berners Lee at CERN (European organisation for nuclear research) in 1990
A distributed hypertext system for managing information at CERN (based on previous hypertext research)
1991-3: web servers begin to come online outside of CERN. WWW technology made free by CERN 1993: First publicly available graphical browser NCSA Mosaic Commercial browsers followed (Navigator, Explorer, Opera, Firefox etc)
Internet Technologies
There are some core technologies that enable the Internet to work
TCP / IP
Related protocols include SMTP (Simple Mail Transfer Protocol) Related tools include FTP (File Transfer Protocol)
10
IP Addresses
Computers are identified by their IP address Hardware devices known as routers glue all the different networks together
11
IP Addresses
A 32 bit binary number (billions of combinations, though IPv6 will have many more) The format is nnn.nnn.nnn.nnn Each of these numbers falls in the range 0 255. e.g. 127.0.0.1
Given an IP address, one machine can connect to another as if they were on the same physical network Some machines have fixed IP addresses, others are temporarily allocated an IP address from a pool when they connect
Cengage Learning 2010
12
Domain Names
Most web site hosts use domain names rather than actual IP addresses The Domain Name System (DNS) enables domain names to be converted into the correct IP address
13
DNS Zones
The DNS consists of a number of dedicated servers (a distributed database) that maintain naming information for different zones These zones relate to type of site or country of origin
14
DNS Zones
A zone is a set of related domain names, e.g .com, .edu, etc. organised in a tree
15
Domain names are easier to remember Names reflect the identity of the owner The mapping between a domain name and an IP address can change, so the same name can migrate between different host systems
Email addresses use domain names e.g. [email protected]
Cengage Learning 2010
16
HTTP (HyperText Transfer Protocol) HTML (HyperText Markup Language) URLs, URIs and URNs
17
The server handles the request and provides a response, usually in the form of an HTML page
18
GET, POST, HEAD, PUT, DELETE, CONNECT, OPTIONS or TRACE A GET request is used to retrieve information from the server (often contains a search query or other parameter data) A POST request is used to send data to the server (typically from an HTML form)
19
(browsers) send HTTP requests and web servers send HTTP responses
Provide HTML pages to the client
20
HTML
The
information on the web is mainly in the form of HTML (HyperText Markup Language) pages
HTML pages are text documents that contain special mark-up tags telling the browser what type of information they contain
<html> <head> <title>My Page</title> </head> <body>
21
HTML
As well as text, these pages can contain images, sound, animation and other programs (e.g. Flash, Real Player, Adobe Acrobat etc) Browsers can use plugins to handle these special types of content
22
URLs
The protocol of the request (usually http://) The servers domain name or IP address The port number (http is usually 80, https 443) The subdirectory path (if applicable) The name of the resource (though there may be a default) e.g. 404 file not found
23
Example URL
http://www.webhomecover.com:80/help/callcentres.html
protocol domain port path filename
24
A URL is a specific kind of URI (Uniform Resource Identifier) that identifies a web resource that can be downloaded Another type of URI is a URN (Uniform Resource Name), which looks like a URL but does not necessarily relate to a web resource Only used to provide a globally unique name for something
Cengage Learning 2010
25
Intranets
As well as having a public presence on the internet, many companies maintain a private intranet behind a security firewall
Pages that are only available inside the company Low cost of ownership by using the standard technologies of the internet Paperless internal communication Information from corporate databases in accessible formats
Cengage Learning 2010
26
Extranets
Only selected outsiders, such as customers, suppliers or trading partners, are allowed access
Extranets can range from highly secure business to business (B2B) systems to selfregistration systems
Can be used, for example, to allow customers of courier companies to track their deliveries
Cengage Learning 2010
27
Portals
Gateways into other applications A collection of portlets Personalised / customisable Used in the mobile internet (e.g. Vodafone Live!) See Yahoo!, iGoogle etc
28
Layers
Business Logic
Data Management
29
Single computer
Presentation Layer
Spell checking, formatting, paginating, editing Business Logic Layer Data Management Layer Documents paragraphs, words, letters, diagrams
concepts
processes
30
Tiers
31
Multiple computers
Data Management Tier
32
33
AJAX
JavaScript is a programming language that can run inside a browser We can update parts of the page dynamically by connecting to the server without replacing the current page
34
Chapter Summary
Principal features, technologies and uses of web applications The Internet and the World Wide Web Distributed architectures that web applications use Some special types of web application Web 2.0 and AJAX
Cengage Learning 2010
35