DT211/3 Internet Development Application

Slides:



Advertisements
Similar presentations
E-Commerce CMM503 – Lecture 8 Stuart Watt Room C2.
Advertisements

Lecture 11 Server Side Interaction
DT228/3 Web Development WWW and Client server model.
Languages for Dynamic Web Documents
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
DT211/3 Internet Development Application Internet Development Application.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Introduction to Web Interface Technology (CSE2030)
DT228/3 Web Development WWW and Client server model.
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.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
ECA 228 Internet/Intranet Design I Intro to the Web.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Chapter 16 The World Wide Web. 2 Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic HTML.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
Chapter 1: Introduction to Web
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
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.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Chapter 16 The World Wide Web. 2 The Web is an infrastructure of distributed information combined with software that uses networks as a vehicle to exchange.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Website Design Lecture 1. Outline Introduction to the module Outline of the Assessment Schedule Lecture Static XHTML, client side and server side Why.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Overview Web Session 3 Matakuliah: Web Database Tahun: 2008.
Active Server Pages Server-Side Scripting and Client-Side Scripting.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Introduction and Principles Web Server Scripting.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
WEB SERVER SOFTWARE FEATURE SETS
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Introduction to the World Wide Web & Internet CIS 101.
The Internet Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
Web Page Programming Terms. Chapter 1 Objectives Describe Internet and Understand Key terms Describe World Wide Web and its Key terms Identify types and.
HTML PROJECT #1 Project 1 Introduction to HTML. HTML Project 1: Introduction to HTML 2 Project Objectives 1.Describe the Internet and its associated key.
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.
Server Side Programming Database Integration
Section 10.1 Define scripting
CS299: Web Programming and Design Instructor: Dr. Fang (Daisy) Tang
Web Programming Language
Distributed Control and Measurement via the Internet
Section 6.3 Server-side Scripting
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
WWW and HTTP King Fahd University of Petroleum & Minerals
Chapter 1 Introduction to HTML.
Web Development Web Servers.
Active Server Pages Computer Science 40S.
Introduction and Principles
Project 1 Introduction to HTML.
PHP / MySQL Introduction
Department of Computer Science, Florida State University
Introduction to Web Database By Rimpi Suman 1 1 Unit-6.
CISC103 Web Development Basics: Web site:
Chapter 27 WWW and HTTP.
CMP Creating Your Personal and Small Business Web Sites
Introduction to Servlets
INFS 230 L Internet Technology
Client-Server Model: Requesting a Web Page
Presentation transcript:

DT211/3 Internet Development Application

Lecturer Cindy Liu Room K201 Kevin Street Ext: 2868 Email: cindy.liu@comp.dit.ie Website: www.comp.dit.ie/cliu

Course To date, have looked at mostly “static” website HTML Client side javascript/ stylesheets etc This course focuses on enabling dynamic web applications

Learning outcomes Learn the concepts and the principles of WWW Be able to set up and maintain a web server Be able to develop database-driven Web applications using a formal design method

Learning outcomes Be able to construct and maintain a well designed web site Be use the state-of-the-art web application development tools and languages to develop web applications Be familiar with current issues and trends in web applications development technologies.

Course Outline Web servers: web servers in an internet architecture; installing and configuring a web server; servicing HTTP requests; features provided by a web server; comparing and contrasting different servers. Server Pages: developing a server side application using markup language embedded with programming code

Course Outline Accessing databases: connecting to a database, embedded SQL, available databases, database features necessary in a web application Server side technologies: overview of available server side technologies, CGI, Perl, PHP, Cold Fusion, ASP, JSP, Java servlets; contrasting comparing capabilities and functionality available for server side development; recent advances in server side technologies

Schedule Lecture and Lab Tuesdays 15-17 in A308

Course Assessment 100% continue assessment 4 assignments – each will weight at 25%

Course Materials Lectures Notes on http://www.comp.dit.ie/cliu/ Books: “Internet and the world wide web – 2nd edition” – Deitel, Deitel & Neito “Java server Pages” 2nd edition – Hans Bergsten, O’Reilly Further book and web references throughout course Zip disks/ keys

DT211/3 Internet Development Application WWW and Client server model

World Wide Web (WWW) At a minimum, a website requires: A set of files, e.g. HTML files A piece of software residing on a computer connected to the internet which can display these files .. Web server Visitor’s computer called the client, which has software capable of displaying the web files.

WWW and Client-Server model Request e.g. “Get me a webpage” Web Browser Web Server Resources: Databases Application Response Server Client e.g. “here’s the web page”

WWW In early days of WWW, simple relationship between the browser and a distant server User requests a web page via the browser Server received request, server sent back the page that you wanted Web sites were often limited to ‘brochureware’ static pages every user sees same pages Web sites heavily reliant on HTML to provide functionality  

WWW Requirement grew for more sophisticated websites with dynamic content e.g. search engines, bulletin boards, shopping sites, personalisation --- Users see different pages, depending on user input HTML and client technology insufficient Web pages need to be generated ‘on the fly’ or dynamically A range of server-side technologies now available, such as JSP, ASP, PHP, Cold Fusion, CGI

WWW – Client Server model World Wide Web uses Client Server Model Client (browser) sends request to server (web server) for resource .. Web server accesses resource Web server responds to client with resource Browser/ web server communication: Need a protocol to communicate HTTP (Hyper Text Transfer Protocol)

WWW and Client-Server model Request e.g. “Get me a webpage” Web Browser Web Server Resources: Databases Application Response Server Client e.g. “here’s the web page”

Client side versus server side processing Need to understand the difference as each one has limitations and specific purposes Client side processing occurs on the client machine (i.e. machine that has requested the web page) Server side processing occurs on the server

Client side processing Can perform functions without revisiting server – e.g. validation of user input on a form

Client technologies Client side technology (e.g. java script, HTML) is run on the client machine Used for : Presentation (I.e. text/images etc) Validation of user input Enhanced interactivity e.g. graphics, buttons Reduces the number of visits to the server – (e.g. user input can be validated without having to revisit the server)

Client-side technologies The following technologies are run on the client machine by the web browser Markup Languages: e.g. HTML / XHTML /XML, Style Sheets Client Side Scriptings: e.g. JavaScript, VBScript /Jscript, Dynamic HTML Java Applets ActiveX Controls Plug Ins / Helpers

Example HTML> <HEAD> <TITLE>Example error message display </TITLE> <SCRIPT> type = “text/javascript”> <!—- document writeln (“<h1>you have not entered your name”<h1>2); // - -> </SCRIPT> </HEAD> <BODY> <BODY BGCOLOR="white"> <H1 align="center">Simple Test</H1> … etc

Limitations of client-side technologies Cannot implement functionality that requires returns customised information to the user – e.g. database searches Client machine/device must be sufficiently powerful (mobile devices) Need to ensure browser support client software Source code is visible

Server-Side functionality Server-side functionality needed to: generate dynamic content from a database (as opposed to static HTML pages) Process user requests/interactivity Retrieve information from users Manage sessions.. and more.

Server side processing

Common Server Technologies Server Side Technologies are those that run at the server side. Includes the following: CGI – Common Gateway Interface Java Servlets ASP – Active Server pages JSP – Java Server pages PHP – Personal Home page Cold Fusion SSJS - Server side javascript Server extension APIs Server side Scripting

Server-Side scripting Servers-side technologies include a range of scripting technologies Scripting: Where HTML is mixed with program code Only a small portion of the page is generated and templates or skeleton contain the headers, footers and other format information. The page contains scripting information - the web server has built-in interpreter to make the modifications to the page based on the scripting information Common sever-side scripting technologies are: Active Server Pages (microsoft), Java Server Pages (sun) PHP, Cold Fusion

Server-Side scripting Scripts Reside on server Greater flexibility/functionality supported (e.g. database access Runs exclusive on server -> not concerned with client browser support. Result is sent over the network to the client Script/code not visible to client – only HTML and client-side scripts sent to client machine

Active Server Page Example – HTMl page <head> HTML Form Calls ASP page (on next page) <title>ASP Example 2</title> </head> <body> <form method="POST" action="resultofexample2.asp"> <p>A= <input type="text" name="ValueofA" size="20"></p> <p>B= <input type="text" name="ValueofB" size="20"></p> <p><input type="submit" value="Calculate" name="B1"></p> </form> </body> </html>

ASP Example – ASP page Script (Not sent to client… Not visible html> <head> <title>Results of Example 2 ASP Page</title> </head> <body> <p>Example Page <%@ language="vbscript" %> <% dim A, B Script (Not sent to client… Not visible in “view source”) A=Request.form("ValueofA") B=Request.form("ValueofB") %> </p> <p>A+B= <%= eval(A)+eval(B) %> </p> <p>A-B= <%= eval(A)-eval(B) %> </p> <p>A*B= <%= eval(A)*eval(B) %> </p> </body></html>