Http protocol Response-request Clients not limited to web browsers. Anything that can access code implementing the protocol works: –Standalone programs.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10 Servlets and Java Server Pages.
Advertisements

1 CGICGI Common Gateway Interface Server-side Programming Lecture.
Apache Tomcat as a container for Servlets and JSP
Java Server Pages (JSP)
DT228/3 Web Development WWW and Client server model.
An architecture for webb applications, J2EE
Servlets and a little bit of Web Services Russell Beale.
How the web works: HTTP and CGI explained
Web architecture Dr Jim Briggs Web architecture.
DT211/3 Internet Development Application Internet Development Application.
Multiple Tiers in Action
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
Definitions, Definitions, Definitions Lead to Understanding.
Web programming for project students Dr Jim Briggs.
Hypertext Transport Protocol CS Dick Steflik.
Session-01. What is a Servlet? Servlet can be described in many ways, depending on the context: 1.Servlet is a technology i.e. used to create web application.
SE-2840 Dr. Mark L. Hornick1 Java Servlet-based web apps Servlet Architecture.
Java Servlets. What Are Servlets? Basically, a java program that runs on the server Basically, a java program that runs on the server Creates dynamic.
Gayle J Yaverbaum, PhD Professor of Information Systems Penn State Harrisburg.
Intro to Servlets Lec 26. Web-Based Enterprise Applications in Java Figure shows a simplified view of one application and its layers.
Java Server Pages B.Ramamurthy. Topics for Discussion 8/20/20152 Inheritance and Polymorphism Develop an example for inheritance and polymorphism JSP.
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.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Applets & Servlets.
Agenda Web Development Chapter 7 Review Class Discussion Issues.
HTTP; The World Wide Web Protocol
Comp2513 Forms and CGI Server Applications Daniel L. Silver, Ph.D.
SSC2: Web Services. Web Services Web Services offer interoperability using the web Web Services provide information on the operations they can perform.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Understand the components of a browser and a server Understand.
Java Omar Rana University of South Asia. Course Overview JAVA  C/C++ and JAVA Comparison  OOP in JAVA  Exception Handling  Streams  Graphics User.
Web Application Programming Carol Wolf Computer Science.
Introduction to Internet Programming (Web Based Application)
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
COMP 321 Week 7. Overview HTML and HTTP Basics Dynamic Web Content ServletsMVC Tomcat in Eclipse Demonstration Lab 7-1 Introduction.
CMPUT 391 – Database Management Systems Department of Computing Science University of Alberta CMPUT 391 Database Management Systems Web based Applications,
Web Server Programming 1. Nuts and Bolts. Premises of Course Provides general introduction, no in-depth training Assumes some HTML knowledge Assumes some.
Chapter 6 Server-side Programming: Java Servlets
Introduction to ASP.NET1. 2 Web applications in general Web applications are divided into two parts –The server part –The client part The server part.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Form Data Encoding GET – URL encoded POST – URL encoded
Java Servlet API CGI / HTTP Concepts Java Servlet API.
Operating Systems Lesson 12. HTTP vs HTML HTML: hypertext markup language ◦ Definitions of tags that are added to Web documents to control their appearance.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
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.
Middleware 3/29/2001 Kang, Seungwoo Lee, Jinwon. Description of Topics 1. CGI, Servlets, JSPs 2. Sessions/Cookies 3. Database Connection(JDBC, Connection.
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, Responds oriented other.
1 Introduction to Servlets. Topics Web Applications and the Java Server. HTTP protocol. Servlets 2.
JS (Java Servlets). Internet evolution [1] The internet Internet started of as a static content dispersal and delivery mechanism, where files residing.
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
UMass Lowell Computer Science Java and Distributed Computing Prof. Karen Daniels Fall, 2000 Lecture 21 Java Servlets Wed. 11/22/00 based on material.
How CGI and Java Servlets are Run By David Stein 14 November 2006.
Server-side http General form of http response/request GET request method POST request method Responses Servlet support.
Web Services Essentials. What is a web service? web service: software functionality that can be invoked through the internet using common protocols like.
Introduction to Internet Programming (Web Based Application)
Servlets.
Section 6.3 Server-side Scripting
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
WWW and HTTP King Fahd University of Petroleum & Minerals
Web Development Web Servers.
Hypertext Transport Protocol
Web App vs Mobile App.
Tutorial (4): HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Java Servlet Ziad A. Al-Sharif.
Introduction to Servlets
J2EE Lecture 1:Servlet and JSP
An Example of a TCP/IP Application: the World Wide Web
MSc Internet Computing
Presentation transcript:

http protocol Response-request Clients not limited to web browsers. Anything that can access code implementing the protocol works: –Standalone programs in Java Perl C, C++ Javascript PHP Lisp …

http protocol Requests: –GET –POST –HEAD GET originally designed for request to provide a resource (the part after the / Extended with CGI query syntax

GET vs Post: CGI Query Sytax GET –uses CGI –Issues: data is exposed only good for small data POST –Arbitrary data can be sent to server including plain text serialized objects …

http Responses Headers can include data about –Content Format MIME Content types text/html text/xml application/msword application/jpeg application/gif application/mpeg …

http Responses Headers can include data about –Content Format –Cache control (e.g. how long cache will be valid) –Length of message –Last Modification Date

Server side programming In the old days (circa ) most server side programming was perl using the cgi interface libraries, processing GET Generalizations in Java: –Servlets. Classes wrap most of the protocol. servlet implements doGet and doPut –JSP (client side) builds servlets on-the-fly. –Need to be embedded in a web container implementing the servlet API, e.g. Apache jakarta tomcat, JServ (somewhat obsolete), and commercial products

Tomcat Web container Embeddable in web servers such as Apache Can run standalone (which is what we'll do). In other words, it also can do http protocols. In fact when embedded in a webserver, the server forwards the http requests and responses. (Part of web container spec?)