Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.

Slides:



Advertisements
Similar presentations
In Review JAVA C++ GUIs - Windows Webopedia.com.
Advertisements

Java Script Session1 INTRODUCTION.
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Kyung Hee University 1 1 Application Layer. 2 Kyung Hee University Position of Application Layer.
got ? Research Project – April 1998 Hang Xia, Mark Wang, Richard S. Chang Updated: R Norman, August 1999.
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
Prepared By E.Musa Alyaman1 Chapter 2 The Java Overview.
B-1 Appendix B Information System Software Robert Riordan, Carleton University.
Chapter 2: Impact of Machine Architectures What is the Relationship Between Programs, Programming Languages, and Computers.
SCRIPTING LANGUAGE. The first interactive shells were developed in the 1960s to enable remote operation of the first time-sharing systems, and these,
1 Chapter 3 Programs and Packages. 2 Java Virtual Machine (JVM) Java programs execute on the JVM. The JVM is a virtual rather than a physical machine,
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
Session-02. Objective In this session you will learn : What is Class Loader ? What is Byte Code Verifier? JIT & JAVA API Features of Java Java Environment.
Introduction to JavaScript. Aim To enable you to write you first JavaScript.
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
CMSC 202 Computer Science II for Majors Fall 2009 Introduction.
Introduction to Java Programming. Contents 1. Java, etc. 2. Java's Advantages 3. Java's Disadvantages 4. Types of Java Code 5. Java Bytecodes 6. Steps.
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
INTRODUCTION TO WEB DATABASE PROGRAMMING
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Chapter 1 Coding Introduction.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
CS413: Java Programming language Applications Applets
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
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.
CPS120: Introduction to Computer Science The World Wide Web Nell Dale John Lewis.
CMSC 202 Computer Science II for Majors Object-Oriented Programming.
Operating Systems CS3502 Fall 2014 Dr. Jose M. Garrido
Java Lecture 16: Dolores Zage. WWW n Was a method for distributing passive information n added forms and image maps n interaction was only a new way to.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 65 – Manipulating Data Using Methods – Java Applet.
111 © 2002, Cisco Systems, Inc. All rights reserved.
Why Java? A brief introduction to Java and its features Prepared by Mithat Konar.
Comp2513 Java and Applets Daniel L. Silver, Ph.D..
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Introduction and Features of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++
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 
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
Java and its Evolution. Contents Java Introduction Java Features How Java Differs from other OO languages Java and the World Wide Web Java Environment.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Chapter 29 World Wide Web & Browsing World Wide Web (WWW) is a distributed hypermedia (hypertext & graphics) on-line repository of information that users.
Chapter 4 Applets Cop Why Applets? WWW makes huge information available to anyone with web browser. Web server send web pages and images to your.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
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.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
By: Cheryl Mok & Sarah Tan. Java is partially interpreted. 1. Programmer writes a program in textual form 2. Runs the compiler, which converts the textual.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Java – in context Main Features From Sun Microsystems ‘White Paper’
FALL 2004CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Other Topics (Web technologies: HTTP, CGI, Java applets; Middleware)
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
Operating System Concepts Three User Interfaces Command-line Job-Control Language (JCL) Graphical User Interface (GUI)
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
JAVA PROGRAMMING Buzzwords. Simple: Less complex syntax than C++ Not as easy to design as Visual Basic Small size of interpreter.
Brief Look InTo JavaScript Dr. Thomas Hicks Computer Science Department Trinity University.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
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.
Chapter 1 Coding Introduction.
Applications Active Web Documents Active Web Documents.
JAVA, JAVA Applets, and JavaScript
WWW and HTTP King Fahd University of Petroleum & Minerals
Java programming lecture one
Chapter 27 WWW and HTTP.
CSI 4118 – UNIVERSITY OF OTTAWA
Java History, Editions, Version Features
Presentation transcript:

Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents

Browser updates via Server Push a server is responsible to continuously run a dynamic document program to produce new versions of the document which is sent to the browser. This method causes the server to be overloaded whenever there are too many browser clients. Delays arise from limits in available CPU and network bandwidth. I

Browser updates via Active documents browser downloads an active document which is then run locally on the browser. CPU resources on the server is kept to a minimum network bandwidth usage is kept to a minimum

Active Document Representations (fig 34.1) (fig 34.1)(fig 34.1) active document in source form is used by programmer which is then compiled into active document in binary (object) form or machine independent(portable) Java bytecode representation which is stored on Web server active document in executable form is used by browser. It is generated by resolving remaining references and linking the the active document in binary form to library routines and system functions. Java is a technology produced by Sun Microsystems for generating active documents

Java Components programming language a run-time environment a library of classes – The Java library and run-time system provide a graphics toolkit (eg. to create buttons, pull- down menus, dialog boxes, scroll bar) to make graphics programming easier

Java Language Characteristics high level & general purpose object oriented –objects contain data and methods that operate on data –Similar to C++ Dynamic –an instance of an object is created dynamically at run-time strongly typed –operations tied to data of particular type Concurrent – program can have multiple threads of control –threads execute concurrently ie. appear to run at same time

Java Run-time Environment interpretative execution – Java compiler translates a java program into a machine-independent binary representation known as the java bytecode representation. Java interpreter reads this code an interprets the instructions automatic garbage collection – program need not call free to free up memory multithreaded execution – run-time system has parts of operating system to handle scheduling and context switching internet access – run-time system includes a socket library that a client program can use to contact a remote server via TCP or UDP graphics support –create windows & graphics

Uses of Java Library of Classes graphics manipulation – allows applet to display text, graphics, or dialog boxes low-level network I/O – easy access to sockets for UDP or TCP connections interaction with a Web server – applet can access static/dynamic Web documents or other applets run-time system access – allows applet to create a thread file I/O conventional data structures – a dictionary class allows storage of items event capture – such as mouse clicks or keyboard entry exception handling

Java Applet an active Java document A programmer creates an applet by writing a source program in Java programming language (fig 34.2)(fig 34.2) A java compiler (eg. javac on server pluto.calstatela.edu) is then used to translate the source program (with extension.java) into a bytecode representation ( extension.class), and places the bytecode representation on a web server. When a browser downloads this program, the Java interpreter in the browser executes the applet (fig 34.3)(fig 34.3) To make java applets portable across multiple hardware platforms, the java graphics toolkit does not manipulate the display hardware. – Instead, the run-time system maps Java graphics methods to equivalent operations( eg. X windows) that use the computer’s window system.

Methods used to invoke an Applet user supplies the URL of an applet (extension.class) to a browser that is java enabled –eg. embed an applet tag within an HTML document. –eg. –When browser encounter the applet tag, a copy of the class file will be requested and downloaded from the server –an instance of class bbb will be created, and the init method will be invoked.

JavaScript A variation of Java which allows a programmer to store applets in source form in HTML page (fig 34.7).(fig 34.7) Pro: no compiler is needed. Con: slower to execute.