Java the UML Way version 2002-04-17 Only to be used in connection with the book "Java the UML Way", by Else Lervik and.

Slides:



Advertisements
Similar presentations
Introduction to Java 2 Programming Lecture 10 Applets.
Advertisements

20 Maart 2006ISS - Internet Applications Part 21 Internet Applications part 2 René de Vries Based on slides by M.L. Liu and Marko van Eekelen.
1 CGICGI Common Gateway Interface Server-side Programming Lecture.
Internet Security Protocols
Review of Java Applets Vijayan Sugumaran Decision and Information Sciences Oakland University.
INTERNET DATABASE Chapter 9. u Basics of Internet, Web, HTTP, HTML, URLs. u Advantages and disadvantages of Web as a database platform. u Approaches for.
INTERNET DATABASE. Internet and E-commerce Internet – a worldwide collection of interconnected computer network Internet – a worldwide collection of interconnected.
Active X Microsoft’s Answer to Dynamic Content Reference: Using Active X by Brian Farrar QUE
Introduction to Web Interface Technology (CSE2030)
Multiple Tiers in Action
And so on CGI programming Web Services Java Programs for the Web.
Definitions, Definitions, Definitions Lead to Understanding.
Object Oriented Programming (OOP) LAB # 5 TA. Maram & TA. Mubaraka TA. Kholood & TA. Aamal.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved L05 (Chapter 16) Applets.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Java the UML Way version Only to be used in connection with the book "Java the UML Way", by Else Lervik and.
1 Servlet How can a HTML page, displayed using a browser, cause a program on a server to be executed?
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.
Java the UML Way versjon Only to be used in connection with the book "Java the UML Way", by Else Lervik and.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Java the UML Way versjon Only to be used in connection with the book "Java the UML Way", by Else Lervik and.
19-Sep-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming Design Topic : Applets Maj Joel Young
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Department of Information Engineering 1 What is –Java? –Javascript –VisualBasic –CGI –NT –Linux –Unix.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 23 How Web Host Servers Work.
3-Protecting Systems Dr. John P. Abraham Professor UTPA.
Java the UML Way versjon Only to be used in connection with the book "Java the UML Way", by Else Lervik and.
Chapter 18 Networking F Client/Server Communications F Simple Client/Server Applications F Serve Multiple Clients F Create Applet Clients F Send and Retrieve.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Java the UML Way version Only to be used in connection with the book "Java the UML Way", by Else Lervik and.
1 Welcome to CSC 301 Web Programming Charles Frank.
Mainframe (Host) - Communications - User Interface - Business Logic - DBMS - Operating System - Storage (DB Files) Terminal (Display/Keyboard) Terminal.
Pravin Yannawar, DOCS, NMU Jalgaon Basic Java : Applets 2 Objectives of This Session Identify the need for Applets Distinguish between Applets and Applications.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Java the UML Way versjon Only to be used in connection with the book "Java the UML Way", by Else Lervik and.
Chapter 6 Applets and HTML  Overview  HTML tags for Applets  Applet Life Cycle  Applet Class  JAR files.
Chapter 16: Networking F Client/Server Communications F Serving Multiple Clients F Applet Clients F Viewing HTML Pages F Retrieving Files from Web Servers.
Active Server Pages Server-Side Scripting and Client-Side Scripting.
Java the UML Way versjon Only to be used in connection with the book "Java the UML Way", by Else Lervik and.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Web application architecture1 Based on Jim Conallen: Web Applications with UML.
Chapter 14 Applets and Advanced GUI  The Applet Class  The HTML Tag F Passing Parameters to Applets F Conversions Between Applications and Applets F.
The Problem of State. We will look at… Sometimes web development is just plain weird! Internet / World Wide Web Aspects of their operation The role of.
Java the UML Way version Only to be used in connection with the book "Java the UML Way", by Else Lervik and.
Fall 2000C.Watters1 World Wide Web and E-Commerce Clients & Client Side Processing.
Java the UML Way versjon Only to be used in connection with the book "Java the UML Way", by Else Lervik and.
1 Applets are small applications that are accessed on an Internet server, transported over the internet, automatically installed and run as a part of web.
Java the UML Way version Only to be used in connection with the book "Java the UML Way", by Else Lervik and.
Applets, Images, and Audio Chapter 14 CSCI CSCI 1302 – Applets, Images, and Audio2 Outline Introduction The Applet Class –The init Method –The start.
Java the UML Way versjon Only to be used in connection with the book "Java the UML Way", by Else Lervik and.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
CHAPTER Agenda Applets Servelets Browsers HelloWorld.
Client-Server applications Introduction to Java Applets Client-server architectures Why do Applets exist? What can an Applet do?
Chapter 4 Request and Response. Servlets are controlled by the container.
Lect5.ppt - 02/23/06 CIS 4100 Systems Performance and Evaluation Lecture 6 by Zornitza Genova Prodanoff.
Applet: An applet is a java program that is transmitted over the network from the server to client & executed within clients browser. Applets are used.
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
WWW and HTTP King Fahd University of Petroleum & Minerals
Chapter 18 Networking Client/Server Communications
MapServer In its most basic form, MapServer is a CGI program that sits inactive on your Web server. When a request is sent to MapServer, it uses.
Distributed Computing, M. L. Liu
Distributed Computing, M. L. Liu
Java applets 1/3/2019.
Your computer is the client
Q/ Compare between HTTP & HTTPS? HTTP HTTPS
APPLET PROGRAMMING.
Presentation transcript:

Java the UML Way version Only to be used in connection with the book "Java the UML Way", by Else Lervik and Vegard B. Havdal. ISBN , John Wiley & Sons Ltd 2002 The Research Foundation TISIP, Chapter 18 More about applets A Web server is statelesspage 2 Distributed processingpage 3 The sandbox model in Javapage 4 Security managerpage 5 The applet classes’ place in the class treepage 6 The life cycle of an appletpage 7 Security in practicepage 8 Communication between applet and browserpage 9

Only to be used in connection with the book "Java the UML Way", by Else Lervik and Vegard B. Havdal. ISBN , John Wiley & Sons Ltd 2002 The Research Foundation TISIP, Chapter 18, page 2 A Web Server is Stateless The main task of a Web server is to answer clients’ requests to get files. A HTML page is a fairly ”dead” affair with limited possibilities for manipulation of data (but some with JavaScript). The user may enter data into a form on a Web page. These are sent to the Web server, which could pass it on as input to a program. After this, the Web server forgets this request. It is stateless, like an object without any variables. If the same client continues to work on the same tasks, it can’t suppose that the server remembers the last time they had contact. In practice, the server will in these cases have finished the last sub-task by sending data back to the client. Internet Web server program using the data CGI brow- ser HTTP clientserver

Only to be used in connection with the book "Java the UML Way", by Else Lervik and Vegard B. Havdal. ISBN , John Wiley & Sons Ltd 2002 The Research Foundation TISIP, Chapter 18, page 3 Distributed Processing We can reduce the network traffic by letting the browser download small programs which do calculations and work on data in other ways. The browser runs these programs automatically Other technologies –Java applets –Microsoft ActiveX –Shockwave Flash from Macromedia

Only to be used in connection with the book "Java the UML Way", by Else Lervik and Vegard B. Havdal. ISBN , John Wiley & Sons Ltd 2002 The Research Foundation TISIP, Chapter 18, page 4 The Sandbox Model in Java AppletContext System.out C:\windows /etc/passwd lpt1 Suspicious applet doesn’t get access to many resources on the computer.

Only to be used in connection with the book "Java the UML Way", by Else Lervik and Vegard B. Havdal. ISBN , John Wiley & Sons Ltd 2002 The Research Foundation TISIP, Chapter 18, page 5 Security Manager A security manager is an object of the class SecurityManager. A running Java program can have one of these installed. If the program wishes to perform a task that is a security hazard, it has to ask the security handler for permission. It should not be possible for us to write risky code without having to use methods in the API that perform the security check. An applet always has a security manager installed. The applet can’t change its own security manager.

Only to be used in connection with the book "Java the UML Way", by Else Lervik and Vegard B. Havdal. ISBN , John Wiley & Sons Ltd 2002 The Research Foundation TISIP, Chapter 18, page 6 The Applet Classes’ Place in the Class Tree Object Component JFrame JApplet JInternalFrameDialog JDialog Container WindowJComponentPanel FrameJWindow Applet Not all browsers support Swing. See the book’s web page for relevant information.

Only to be used in connection with the book "Java the UML Way", by Else Lervik and Vegard B. Havdal. ISBN , John Wiley & Sons Ltd 2002 The Research Foundation TISIP, Chapter 18, page 7 The Life Cycle of an Applet The applet is stopped, the user has left the Web page. init() start() stop() destroy() The applet is loaded and starts right away. The applet is running, the user is watching. The applet is out of the world because the browser is closed, or for another reason. loaded runningstopped dead Show program listing 18.1, pp Solve problem page 570.

Only to be used in connection with the book "Java the UML Way", by Else Lervik and Vegard B. Havdal. ISBN , John Wiley & Sons Ltd 2002 The Research Foundation TISIP, Chapter 18, page 8 Security in Practice Show program listings 18.2 and 18.3, pp

Only to be used in connection with the book "Java the UML Way", by Else Lervik and Vegard B. Havdal. ISBN , John Wiley & Sons Ltd 2002 The Research Foundation TISIP, Chapter 18, page 9 Communication Between Applet and Browser Applet context –AppletContext browser = getAppletContext(); –The applet gets a reference to the browser it runs in –Relevant messages to send to the object browser void showDocument(URL url) void showStatus(String statusText) Parameters for the applet, examples Applet which demonstrates use of parameters Your browser does not support applets, or it's turned off. Show program listing 18.4, page 574.