CS4273: Distributed System Technologies and Programming Lecture 13: Review.

Slides:



Advertisements
Similar presentations
 2002 Prentice Hall. All rights reserved. Chapter 9: Servlets Outline 9.1 Introduction 9.2 Servlet Overview and Architecture Interface Servlet and.
Advertisements

Muhammad Taimoor Khan
28.2 Functionality Application Software Provides Applications supply the high-level services that user access, and determine how users perceive the capabilities.
Kyung Hee University 1 1 Application Layer. 2 Kyung Hee University Position of Application Layer.
Building Applications using ASP.NET and C# / Session 1 / 1 of 21 Session 1.
A CHAT CLIENT-SERVER MODULE IN JAVA BY MAHTAB M HUSSAIN MAYANK MOHAN ISE 582 FALL 2003 PROJECT.
1 Java Networking – Part I CS , Spring 2008/9.
1. Introducing Java Computing  What is Java Computing?  Why Java Computing?  Enterprise Java Computing  Java and Internet Web Server.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2005 Pearson Education, Inc. All rights reserved Chapter 34 Servlets.
Technologies For use on different layers. Technologies Client tier Client tier to middle tier protocols Middle tier technologies Middle tier to data tier.
DT211/3 Internet Development Application Internet Development Application.
Course Map The Java Programming Language Basics Object-Oriented Programming Exception Handling Graphical User Interfaces and Applets Multithreading Communications.
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.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
Servlets. Our Project 3-tier application Develop our own multi-threaded server Socket level communication.
SE-2840 Dr. Mark L. Hornick1 Java Servlet-based web apps Servlet Architecture.
Java Server Programming Jeff Schmitt Towson University October 15, 1998.
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
Process-to-Process Delivery:
CS 299 – Web Programming and Design CS299: Web Programming and Design Instructor: Dr. Fang (Daisy) Tang.
Chapter 10 EJB Concepts of EJB Three Components in Creating an EJB Starting/Stopping J2EE Server and Deployment Tool Installation and Configuration of.
1 Homework / Exam Exam 3 –Solutions Posted –Questions? HW8 due next class Final Exam –See posted schedule Websites on UNIX systems Course Evaluations.
Applets & Servlets.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Advanced Java New York University School of Continuing and Professional Studies.
Beyond DHTML So far we have seen and used: CGI programs (using Perl ) and SSI on server side Java Script, VB Script, CSS and DOM on client side. For some.
Comp2513 Forms and CGI Server Applications Daniel L. Silver, Ph.D.
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 4: Core Web Technologies
HTTP client wide area network (Internet) HTTP proxy HTTP server HTTP gateway firewall HTTP tunnel Copyright Springer Verlag Berlin Heidelberg 2004.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Java Omar Rana University of South Asia. Course Overview JAVA  C/C++ and JAVA Comparison  OOP in JAVA  Exception Handling  Streams  Graphics User.
CS 493/693: Distributed Systems Programming V. “Juggy” Jagannathan CSEE, West Virginia University March 21, 2005.
An program As a simple example of socket programming we can implement a program that sends to a remote site As a simple example of socket.
E-Business William R. Mussatto CyberStrategies, Inc. 12/2/2000.
Standalone Java Application vs. Java Web Application
J2EE Structure & Definitions Catie Welsh CSE 432
20-753: Fundamentals of Web Programming 1 Lecture 1: Introduction Fundamentals of Web Programming Lecture 1: Introduction.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 7: HTTP and CGI Fundamentals of Web Programming.
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
Copyright © Curt Hill, Client – Server Computing An important paradigm.
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
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 Chapter 28 Networking. 2 Objectives F To comprehend socket-based communication in Java (§28.2). F To understand client/server computing (§28.2). F To.
Client Call Back Client Call Back is useful for multiple clients to keep up to date about changes on the server Example: One auction server and several.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
Web application architecture1 Based on Jim Conallen: Web Applications with UML.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
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.
Assignment of JAVA id : BSSE-F10-M-10-JAVA1 Overview of J2EE/Session 2/Slide 1 of 38.
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.
Middleware 3/29/2001 Kang, Seungwoo Lee, Jinwon. Description of Topics 1. CGI, Servlets, JSPs 2. Sessions/Cookies 3. Database Connection(JDBC, Connection.
1 Introduction to Servlets. Topics Web Applications and the Java Server. HTTP protocol. Servlets 2.
Fall 2000C.Watters1 World Wide Web and E-Commerce Servers & Server Side Processing.
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, written in Java code, that.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
UMass Lowell Computer Science Java and Distributed Computing Prof. Karen Daniels Fall, 2000 Lecture 21 Java Servlets Wed. 11/22/00 based on material.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
Distributed Computing & Embedded Systems Chapter 4: Remote Method Invocation Dr. Umair Ali Khan.
IST 201 Chapter 11 Lecture 2. Ports Used by TCP & UDP Keep track of different types of transmissions crossing the network simultaneously. Combination.
CS299: Web Programming and Design Instructor: Dr. Fang (Daisy) Tang
WWW and HTTP King Fahd University of Petroleum & Minerals
MCA – 405 Elective –I (A) Java Programming & Technology
Chapter 26 Servlets.
Chapter 27 WWW and HTTP.
J2EE Lecture 1:Servlet and JSP
Computer Networks Protocols
Presentation transcript:

CS4273: Distributed System Technologies and Programming Lecture 13: Review

2 Final Exam 1.When and where? 2.Exam Type? –Close book exam. No teaching materials are allowed. 3.What are the questions? –2 hours work (the length of your answer should match the marks of the question). –5 questions (mostly programming questions). Answer all the questions. –Write your answers on the exam paper (use back side if extra space is needed). 4.How to prepare? –Understanding teaching materials, assignments, and tutorial questions.

3 WWW and Java programming HTTP protocol –Operations of the HTTP protocol GUI –Event handling model –Programming of simple event handling Java applets –Applet life cycle, –Applet methods and applet programming format, –Parameter passing, –Inter-applet communication.

4 Java Multi-thread Programming Thread definition & creation –Thread methods –Multi-threaded applets & servers Thread mutual exclusion –Using keyword “synchronized” Thread coordination –Using wait() / notify() or notifyAll for thread coordination and thread- execution control –Thread programming with coordination and mutual exclusion

5 Socket Communication Client-server communication using sockets Stream socket (connection oriented) and UDP socket (connectionless) Applet and server communication using sockets

6 Web Searching Structure of web searching Spider operations (HTTP protocol) Web digraph Back links and backlink applications Page ranking Building inverted file for searching

7 CGI Programming CGI life cycle Applet and CGI servers (applet invokes CGI server) Data exchange between applets & CGI servers (input /output of applets & CGI) Design and execution of CGI servers

8 JDBC JDBC fundamentals 2-tier structure: Communication and data flow between –applet and DBMS 3-tier structure: Communication and data-flow between –applet and CGI, –CGI and DBMS Servlet with JDBC for database access

9 Java Servlet Fundamental concepts of Java Servlet –Invocation of a servlet (servlet life cycle) –Communication between servlet and applet / browser (HTML forms) HTTP Servlet Programming –Get / Post methods –Input / Output of servlets –Servlet cookies –Servlet sessions Servlets as a middle tier of systems (DBMS, mail-server, etc.)

10 Security Programming Fundamentals of security –Authentication, secure data transmission, and access control –SSL and https –Certificates, their applications and verification Declarative security –Security configurations for authentication, servlets –BASIC method and FORM-based authentication –Switch to https Combined declarative and program security –Authentication by declarative method and access control by programming method Pure program security –Authentication, access control and switch to https –Session tracking for authenticated users

11 JSP Fundamental concepts of JSP –Why JSP –How is a jsp program executed –How to start a jsp program Be able to understand and write simple JSP programs –Inclusion of “Java” code –Parameter passing –Use of library or Java beans

12 Remote Method Invocation (RMI) What is RMI (why to use RMI)? Programming by using RMI: –Interface definition –Client side programming –Server side programming –Client – Server binding Steps of constructing, compiling, and executing clients & servers Applet and Server interaction by using RMI

13 An Example of Past Exam Question 3. [25 marks] Write a Java servlet that collects the order from clients and requests the mail server by using SMTP protocol to send the order to as an . Suppose the server is on machine “mail.cityu.edu.hk” and its port number is 25. The following HTML form (the display image is given below) is used to take the mail orders from clients: Mail Order Form Mail Order (please complete the order form) Name Postal-Address Product-Name Quantity The servlet needs to reply the client after he/she submits the order, by displaying: Your order is under processing The sent to the supplier should be in the form of: The following order has been received: Customer-name Product-name: Quantity