Web Servers Don McGregor Research Associate MOVES Institute

Slides:



Advertisements
Similar presentations
A really fairly simple guide to: mobile browser-based application development (part 1) Chris Greenhalgh G54UBI / Chris Greenhalgh
Advertisements

Ruby on Rails Model of MVC. Model-View-Controller Paradigm A way of organizing a software system Benefits: Isolation of business logic from the user interface.
WEB 2.0. What we are speaking about… Transformation of WEB, the WEB 2.0 –New generation of websites… –Importance of Open Data… –Importance of Users… –Web.
Web documents types 1. 2 Three basic types of web documents Static. A static web document resides in a file that it is associated with a web server. The.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
Server-Side vs. Client-Side Scripting Languages
Retrieving compound pages This work is licensed under a Creative Commons Attribution-Noncommercial- Share Alike 3.0 License. Skills: none IT concepts:
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.
What is it? –Large Web sites that support commercial use cannot be written by hand What you’re going to learn –How a Web server and a database can be used.
Servlets and a little bit of Web Services Russell Beale.
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
CONTENT: A model for collaborative database building Trevor Bond Alan Cornish Washington State University Libraries.
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.
WHAT IS AJAX? Zack Sheppard [zts2101] WHIM April 19, 2011.
Multiple Tiers in Action
Apache Tomcat Server Typical html Request/Response cycle
Website Development with PHP and MySQL Introduction.
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Inline, Internal, and External FIle
INTRO TO MAKING A WEBSITE Mark Zhang.  HTML  CSS  Javascript  PHP  MySQL  …That’s a lot of stuff!
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
How the Web Works. WWW – part of the Internet (others: , FTP, Telnet) Loaded to a Server | Viewed in a Browser (Client) Client: Request & Render.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Mr. Rouda’s CSCI 101 sections. What does a web page consist of? Code HTML, CSS, XHTML, XML, etc. Images Gif, jpg, png, etc. Plugins Swf, flv, etc. JavaScript.
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
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.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Mr. Rouda’s CSCI 101 sections. What does a web page consist of? Code HTML, CSS, XHTML, XML, etc. Images Gif, jpg, png, etc. Plugins Swf, flv, etc. JavaScript.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
10/13/2015 ©2006 Scott Miller, University of Victoria 1 Content Serving Static vs. Dynamic Content Web Servers Server Flow Control Rev. 2.0.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
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 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
Web Programming Brian Toone 8/27/2014. Outline for today 1.Understanding the architecture of the web 2.Overview of programming languages – Client-side.
Java server pages. A JSP file basically contains HTML, but with embedded JSP tags with snippets of Java code inside them. A JSP file basically contains.
Software. A web site is a collection of web pages on a particular topic. A web page is a document written in HTML code. Web pages are linked together.
Web Servers: The Engines that Drive the World Wide Web Dr. William Farmer Reza Sherafat McMaster University May 3, 2006.
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.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
1 Java Servlets l Servlets : programs that run within the context of a server, analogous to applets that run within the context of a browser. l Used to.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
Fall 2000C.Watters1 World Wide Web and E-Commerce Servers & Server Side Processing.
HTML Overview Part 5 – JavaScript 1. Scripts 2  Scripts are used to add dynamic content to a web page.  Scripts consist of a list of commands that execute.
HTML Links HTML uses a hyperlink to another document on the Web.
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 2: Introduction to IS2803 Rob Gleasure
Display Page (HTML/CSS)
Intro Web Applications Andrew Benson – ScottyLabs – CrashCourse F14.
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
Fall 2000C.Watters1 World Wide Web and E-Commerce Servers & Server Side Processing.
Internet/Web Databases
IS1500: Introduction to Web Development
Active Server Pages Computer Science 40S.
HTML & teh internets.
Play Framework: Introduction
Developing Web-Based Applications
Chapter 27 WWW and HTTP.
Client-Server Model: Requesting a Web Page
Presentation transcript:

Web Servers Don McGregor Research Associate MOVES Institute

Client and Server HTML is a file format that allows you to lay out a web page A web browser renders HTML A web server provides files to a web browser 2

HTML 3 Hello world ! Save this file as simple.html Open in a web browser: File->Open File The text (hello world) is displayed on the page. Hello world is in Bold, the exclamation point is not. There are other ways to mark up text--,, etc.

Web Browser Notice that the web browser renders this just fine without a web server. We can make the HTML page more complex—have it load an image This causes the web browser to render the image in the page. Notice the web browser has to have access to all the files specified in the HTML 4

Web Server Rendering files saved on your local PC isn’t so interesting. We want to render files from web servers. So: –Set up a web server on a host we’ll call demo.com –Configure the web server to look in a particular directory for files like simple.html and foo.jpg –Have your web browser contact the server and get the files from there rather than your own disk 5

Web Server 6 Demo.com Host Demo.com Host Content Dir (configured) Simple.html Foo.jpg really means: Go to the host at demo.com Contact the web server (http) running there The web server has a content directory configured—other people don’t need to know what that is Get the file simple.html from whatever content directory is configured Return that to the web browser for rendering, just like loading the file from disk The web browser may have to retrieve other files, like foo.jpg

HTML 7 Hello world ! What does this do? Where is it getting the jpg file?

HTML How about this? Where are the javascript files being loaded from? 8 Hello world !

HTML myJavascript.js is being loaded from the same web server as the HTML page, relative to the location of the HTML file moreJavascript.js is being loaded from the web server at demo.com 9

HTML Obviously at some point it makes sense to start putting similar files into directories—maybe you put all images into content/images on the server, and all javascript files into content/javascript 10 Hello world !

Web Server A web server is mostly just a way to get files, aka “content”, to the web browser The win is that you can change files once, on the server, and everyone will see those changes when they load their web page Web servers can also do some other things, if configured, like be an endpoint for a websocket. 11

Dynamic Content Web servers can generate dynamic content—based on the request they can generate HTML on the fly Example: generate a list of all items available for sale. The items for sale depend on what’s been purchased and removed from inventory You can have a server-side Java program query a database, generate HTML, and return that to the web browser The user asks for and gets back a dynamically generated HTML pagehttp://demo.com/inventory?widgets 12

Dynamic Content 13

Dynamic Content The HTML page wasn’t written in a text editor. Instead the HTML was generated by a program to fit a web page template, based on the results of a live query of the inventory in a database No one had to pull up the html file to edit “9mm.html” to reduce the stock on hand by one when someone purchased ammo 14