SlideShare a Scribd company logo
Active web Page
Active web page come into exisitence due to the
following questions were arises:-
• Why do the image takes times to download
into client system
• Why can the Internet pages containing the
multimedia such as sound or video and played
it like TV.
• The initial solution for this problem was client pull. In
this technique is the browser running on client side
repeatedly request the web server for web pages
containing the images and on receiving them, displays
them one after the other at the rate of 30 pfs to create
the animation. This process is slow. The problem with
this scheme is that, it seems fine in theory, but there is
practical problem for implementing it. Suppose that we
are running high power computer and using the high
speed Internet can't received these images as fast as we
want. These images received by the client is in distorted
and delayed which defeat the purpose of client pull.
The problem associated with client pull was overcome by
new technique called active web page.
An active web page actually contains the computer program
for drawing the images at client side. This program
executed in client web browser. This works as follows:-
• It is similar to static and dynamic web pages, active web
pages are stored on web server. With each active web page
a URL is associated.
• Retrieval of an active web page is similar to static web
page and dynamic web page. When a browser specify the
URL of specific web page, server search it in database and
locate the active web page and send it to client.
• In active web page the browser actually runs a computer
program embedded in active web page. This program draw
an image on the users computer. Thus, active web page
execute on client side rather than at server side. That is
why active web page is faster to access and downloaded
on client system.
Why are Active Web Pages Powerful
• Active web pages get downloaded into client computer. There they
locally perform computation and tasks such as displaying images and
create animations. Therefore, their is no delay between creating an
image and displaying it. Once the active web page is downloaded on
to client system then their is no need to contact the server again
unlike in client pull. As a result a client computer will have full
control on displaying an animation, slow internet connection doesn't
matter.
• Since the client computer takes the responsibilities to execute the
program web server is relieved to do that. This will reduce the
burden on web server. Unlike in dynamic web page, program is
executed at server side and when many users accessing the server
leads to delay in processing the information by the web server. But
in case of active web pages it is responsibilties of client computer.
When not to use the active web page
• Active web pages are mainly used for client side
animation. However they are not useful when
server side programming is required. Server side
programming is required for business logic and
validation of the database. For instance user
entered user id and password, active web page
can't be used because these information/details
are to be validated against user id's and password
are stored at server side database.
Active web page are used for mainly client
side execution of code for example applets.
Java Applets
• An applet is a small program which is written in
the Java programming language and is
embedded in HTML page to form a web page.
An applet makes a web page active. An applets
get downloaded to web browser along with the
requested web page and is executed there
under the control of the Java Virtual Machine
(JVM) installed in the web browser. An applets
then create animation on the client computer.
Life Cycle of Java Applet
• Java applet is event driven similar to operating system
has Interrupt Service Routine (ISR). An applets wait
until specific event happens. When such an events
occurs, the applet receive information from the java
virtual machine(JVM) inside the browser. The applet is
then has to take an appropriate action and upon
completion give back control to JVM.
For example when user moves the mouse inside an
applet window, applet is informed that there is mouse
driven event. Typical life cycle of the java applet is:-
When an applet is executed for the first time, the init(), start()
and paint() methods are called in the said sequence:
• init() : it is used for initialize variable or for doing any other
start up processing. It is called during the life time of an
applet.
• Start() : this method is called after init(). It is also called to
restart an applet after it is stopped. Whereas init() is called
only one once, start() method is called every time the web
page open the containing the applet displayed on the
screen. Therefore, if user leaves a web page open and come
back to it, the applet resume execution at start().
• Paint() : this method is called each time the applet output
must be redrawn. For instance window of other application
can overwrite the window in which applet is running or the
user minimze and then restore the applet window.
• Stop() : this methos is called when user leave
the web pages containing the applet. This
can happen when user select or type
the url of other web page. The stop() method
is used to suspend all the threads that
are running for an applet.
• Destroy() : this method is used when
environment determines that applet needs
to be removed completely from the
client directory. This method is then free all
the resources are used by the applet.
Active web page chapter for reading purpose
• Simple applet example
• <html>
• <body>
• <applet code=”TestApplet” width=”200”
height=”250”</applet>
• </body>
• </html>
Java Beans
• Reusability comes at the core of any modern
computer language's framework. It is often
desirable to use components you previously built
in recurring environments. In Rapid Application
Development, these prove more helpful as you
can drag them off a list of components and use it
elsewhere in your project. Such level of
reusability is added into the Java Programming
language with the help of the JavaBeans
architecture. JavaBeans are the mainstream Java
component model, introduced in 1996 by Sun
Microsystems. JavaBeans are defined as follows:
"A JavaBean is a reusable software component that
can be manipulated visually in a builder tool."
• A software component is a reusable object that
can be plugged into any target software
application. You can develop software
components using various programming
languages, such as C, C++, Java, and Visual Basic.
• A “Bean” is a reusable software component model
based on sun’s java bean specification that can be
manipulated visually in a builder tool.
• The term software component model describe
how to create and use reusable software
components to build an application.
• Builder tool is nothing but an application
development tool which lets you both to create
new beans or use existing beans to create an
application.
• To enrich the software systems by adopting
component technology JAVA came up with the
concept called Java Beans.
• Java provides the facility of creating some user
defined components by means of Bean
programming.
• We create simple components using java beans.
• We can directly embed these beans into the
software.
Advantages of Java Beans:
• The java beans posses the property of “Write once and run
anywhere”.
• Beans can work in different local platforms.
• Beans have the capability of capturing the events sent by
other objects and vice versa enabling object communication.
• The properties, events and methods of the bean can be
controlled by the application developer.(ex. Add new
properties).
• Beans can be configured with the help of auxiliary software
during design time.(no hassle at runtime).
• The configuration setting can be made persistent.(reused).
• Configuration setting of a bean can be saved in persistent
storage and restored later.
What can we do/create by using
JavaBean: There is no restriction on
the capability of a Bean.
• It may perform a simple function, such as checking the
spelling of a document, or a complex function, such as
forecasting the performance of a stock portfolio. A
Bean may be visible to an end user. One example of
this is a button on a graphical user interface.
• Software to generate a pie chart from a set of data
points is an example of a Bean that can execute locally.
• Bean that provides real-time price information from a
stock or commodities exchange.
Ad

More Related Content

What's hot (20)

Maven Introduction
Maven IntroductionMaven Introduction
Maven Introduction
Sandeep Chawla
 
Cloud Computing Using OpenStack
Cloud Computing Using OpenStack Cloud Computing Using OpenStack
Cloud Computing Using OpenStack
Bangladesh Network Operators Group
 
쉽고 강력한 모바일 백엔드 Parse-server
쉽고 강력한 모바일 백엔드 Parse-server쉽고 강력한 모바일 백엔드 Parse-server
쉽고 강력한 모바일 백엔드 Parse-server
InGrowth Gim
 
Virtualization in cloud computing ppt
Virtualization in cloud computing pptVirtualization in cloud computing ppt
Virtualization in cloud computing ppt
Mehul Patel
 
Laravel Tutorial PPT
Laravel Tutorial PPTLaravel Tutorial PPT
Laravel Tutorial PPT
Piyush Aggarwal
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
Professional Guru
 
Spring - Part 2 - Autowiring, Annotations, Java based Configuration - slides
Spring - Part 2 - Autowiring, Annotations, Java based Configuration - slidesSpring - Part 2 - Autowiring, Annotations, Java based Configuration - slides
Spring - Part 2 - Autowiring, Annotations, Java based Configuration - slides
Hitesh-Java
 
C language
C languageC language
C language
Mukul Kirti Verma
 
Spring Boot
Spring BootSpring Boot
Spring Boot
Jiayun Zhou
 
Spring Boot in Action
Spring Boot in Action Spring Boot in Action
Spring Boot in Action
Alex Movila
 
JavaScript Programming
JavaScript ProgrammingJavaScript Programming
JavaScript Programming
Sehwan Noh
 
Java Basic Oops Concept
Java Basic Oops ConceptJava Basic Oops Concept
Java Basic Oops Concept
atozknowledge .com
 
Spring Boot
Spring BootSpring Boot
Spring Boot
Pei-Tang Huang
 
Spring Framework Tutorial | Spring Tutorial For Beginners With Examples | Jav...
Spring Framework Tutorial | Spring Tutorial For Beginners With Examples | Jav...Spring Framework Tutorial | Spring Tutorial For Beginners With Examples | Jav...
Spring Framework Tutorial | Spring Tutorial For Beginners With Examples | Jav...
Edureka!
 
Spring boot introduction
Spring boot introductionSpring boot introduction
Spring boot introduction
Rasheed Waraich
 
Microservices with Java, Spring Boot and Spring Cloud
Microservices with Java, Spring Boot and Spring CloudMicroservices with Java, Spring Boot and Spring Cloud
Microservices with Java, Spring Boot and Spring Cloud
Eberhard Wolff
 
Expressjs
ExpressjsExpressjs
Expressjs
Yauheni Nikanovich
 
django
djangodjango
django
Mohamed Essam
 
ASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP FundamentalsASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP Fundamentals
Ido Flatow
 
Spring ppt
Spring pptSpring ppt
Spring ppt
Mumbai Academisc
 
쉽고 강력한 모바일 백엔드 Parse-server
쉽고 강력한 모바일 백엔드 Parse-server쉽고 강력한 모바일 백엔드 Parse-server
쉽고 강력한 모바일 백엔드 Parse-server
InGrowth Gim
 
Virtualization in cloud computing ppt
Virtualization in cloud computing pptVirtualization in cloud computing ppt
Virtualization in cloud computing ppt
Mehul Patel
 
Spring - Part 2 - Autowiring, Annotations, Java based Configuration - slides
Spring - Part 2 - Autowiring, Annotations, Java based Configuration - slidesSpring - Part 2 - Autowiring, Annotations, Java based Configuration - slides
Spring - Part 2 - Autowiring, Annotations, Java based Configuration - slides
Hitesh-Java
 
Spring Boot in Action
Spring Boot in Action Spring Boot in Action
Spring Boot in Action
Alex Movila
 
JavaScript Programming
JavaScript ProgrammingJavaScript Programming
JavaScript Programming
Sehwan Noh
 
Spring Framework Tutorial | Spring Tutorial For Beginners With Examples | Jav...
Spring Framework Tutorial | Spring Tutorial For Beginners With Examples | Jav...Spring Framework Tutorial | Spring Tutorial For Beginners With Examples | Jav...
Spring Framework Tutorial | Spring Tutorial For Beginners With Examples | Jav...
Edureka!
 
Spring boot introduction
Spring boot introductionSpring boot introduction
Spring boot introduction
Rasheed Waraich
 
Microservices with Java, Spring Boot and Spring Cloud
Microservices with Java, Spring Boot and Spring CloudMicroservices with Java, Spring Boot and Spring Cloud
Microservices with Java, Spring Boot and Spring Cloud
Eberhard Wolff
 
ASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP FundamentalsASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP Fundamentals
Ido Flatow
 

Similar to Active web page chapter for reading purpose (20)

Service workers are your best friends
Service workers are your best friendsService workers are your best friends
Service workers are your best friends
Antonio Peric-Mazar
 
A year with progressive web apps! #DevConMU
A year with progressive web apps! #DevConMUA year with progressive web apps! #DevConMU
A year with progressive web apps! #DevConMU
Antonio Peric-Mazar
 
java.pptx
java.pptxjava.pptx
java.pptx
18csjeyavarthini
 
A year with progressive web apps! #webinale
A year with progressive web apps! #webinaleA year with progressive web apps! #webinale
A year with progressive web apps! #webinale
Antonio Peric-Mazar
 
Progressive Web Apps - NPD Meet
Progressive Web Apps - NPD MeetProgressive Web Apps - NPD Meet
Progressive Web Apps - NPD Meet
Vaideeswaran Sethuraman
 
Progressive Web App
Progressive Web AppProgressive Web App
Progressive Web App
SaleemMalik52
 
Lecture1 oopj
Lecture1 oopjLecture1 oopj
Lecture1 oopj
Dhairya Joshi
 
web programmimg- concpt in JAVABEANS.ppt
web programmimg- concpt in JAVABEANS.pptweb programmimg- concpt in JAVABEANS.ppt
web programmimg- concpt in JAVABEANS.ppt
mcjaya2024
 
Lec 1-of-oop2
Lec 1-of-oop2Lec 1-of-oop2
Lec 1-of-oop2
SM Rasel
 
E farming
E farmingE farming
E farming
shashank reddy
 
Cloud Computing Complete lecture Notes CCII.pptx
Cloud Computing Complete lecture Notes  CCII.pptxCloud Computing Complete lecture Notes  CCII.pptx
Cloud Computing Complete lecture Notes CCII.pptx
FaizanAnsari379088
 
The web - What it has, what it lacks and where it must go - keynote at Riga D...
The web - What it has, what it lacks and where it must go - keynote at Riga D...The web - What it has, what it lacks and where it must go - keynote at Riga D...
The web - What it has, what it lacks and where it must go - keynote at Riga D...
Robert Nyman
 
Progressive Web Applications - The Next Gen Web Technologies
Progressive Web Applications - The Next Gen Web TechnologiesProgressive Web Applications - The Next Gen Web Technologies
Progressive Web Applications - The Next Gen Web Technologies
GeekNightHyderabad
 
Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music store
ADEEBANADEEM
 
1 app 2 developers 3 servers
1 app 2 developers 3 servers1 app 2 developers 3 servers
1 app 2 developers 3 servers
Mark Myers
 
Progressive Web Apps are here!
Progressive Web Apps are here!Progressive Web Apps are here!
Progressive Web Apps are here!
Antonio Peric-Mazar
 
20181023 progressive web_apps_are_here_sfcampua
20181023 progressive web_apps_are_here_sfcampua20181023 progressive web_apps_are_here_sfcampua
20181023 progressive web_apps_are_here_sfcampua
Юлия Коваленко
 
Week1 dq5
Week1 dq5Week1 dq5
Week1 dq5
amaxwell2012
 
Offline for web - Frontend Dev Conf Minsk 2014
Offline for web - Frontend Dev Conf Minsk 2014Offline for web - Frontend Dev Conf Minsk 2014
Offline for web - Frontend Dev Conf Minsk 2014
Jan Jongboom
 
Offline of web applications
Offline of web applicationsOffline of web applications
Offline of web applications
FDConf
 
Service workers are your best friends
Service workers are your best friendsService workers are your best friends
Service workers are your best friends
Antonio Peric-Mazar
 
A year with progressive web apps! #DevConMU
A year with progressive web apps! #DevConMUA year with progressive web apps! #DevConMU
A year with progressive web apps! #DevConMU
Antonio Peric-Mazar
 
A year with progressive web apps! #webinale
A year with progressive web apps! #webinaleA year with progressive web apps! #webinale
A year with progressive web apps! #webinale
Antonio Peric-Mazar
 
web programmimg- concpt in JAVABEANS.ppt
web programmimg- concpt in JAVABEANS.pptweb programmimg- concpt in JAVABEANS.ppt
web programmimg- concpt in JAVABEANS.ppt
mcjaya2024
 
Lec 1-of-oop2
Lec 1-of-oop2Lec 1-of-oop2
Lec 1-of-oop2
SM Rasel
 
Cloud Computing Complete lecture Notes CCII.pptx
Cloud Computing Complete lecture Notes  CCII.pptxCloud Computing Complete lecture Notes  CCII.pptx
Cloud Computing Complete lecture Notes CCII.pptx
FaizanAnsari379088
 
The web - What it has, what it lacks and where it must go - keynote at Riga D...
The web - What it has, what it lacks and where it must go - keynote at Riga D...The web - What it has, what it lacks and where it must go - keynote at Riga D...
The web - What it has, what it lacks and where it must go - keynote at Riga D...
Robert Nyman
 
Progressive Web Applications - The Next Gen Web Technologies
Progressive Web Applications - The Next Gen Web TechnologiesProgressive Web Applications - The Next Gen Web Technologies
Progressive Web Applications - The Next Gen Web Technologies
GeekNightHyderabad
 
Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music store
ADEEBANADEEM
 
1 app 2 developers 3 servers
1 app 2 developers 3 servers1 app 2 developers 3 servers
1 app 2 developers 3 servers
Mark Myers
 
Offline for web - Frontend Dev Conf Minsk 2014
Offline for web - Frontend Dev Conf Minsk 2014Offline for web - Frontend Dev Conf Minsk 2014
Offline for web - Frontend Dev Conf Minsk 2014
Jan Jongboom
 
Offline of web applications
Offline of web applicationsOffline of web applications
Offline of web applications
FDConf
 
Ad

Recently uploaded (20)

Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
Political History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptxPolitical History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
SPRING FESTIVITIES - UK AND USA -
SPRING FESTIVITIES - UK AND USA            -SPRING FESTIVITIES - UK AND USA            -
SPRING FESTIVITIES - UK AND USA -
Colégio Santa Teresinha
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
Ad

Active web page chapter for reading purpose

  • 1. Active web Page Active web page come into exisitence due to the following questions were arises:- • Why do the image takes times to download into client system • Why can the Internet pages containing the multimedia such as sound or video and played it like TV.
  • 2. • The initial solution for this problem was client pull. In this technique is the browser running on client side repeatedly request the web server for web pages containing the images and on receiving them, displays them one after the other at the rate of 30 pfs to create the animation. This process is slow. The problem with this scheme is that, it seems fine in theory, but there is practical problem for implementing it. Suppose that we are running high power computer and using the high speed Internet can't received these images as fast as we want. These images received by the client is in distorted and delayed which defeat the purpose of client pull. The problem associated with client pull was overcome by new technique called active web page.
  • 3. An active web page actually contains the computer program for drawing the images at client side. This program executed in client web browser. This works as follows:- • It is similar to static and dynamic web pages, active web pages are stored on web server. With each active web page a URL is associated. • Retrieval of an active web page is similar to static web page and dynamic web page. When a browser specify the URL of specific web page, server search it in database and locate the active web page and send it to client. • In active web page the browser actually runs a computer program embedded in active web page. This program draw an image on the users computer. Thus, active web page execute on client side rather than at server side. That is why active web page is faster to access and downloaded on client system.
  • 4. Why are Active Web Pages Powerful • Active web pages get downloaded into client computer. There they locally perform computation and tasks such as displaying images and create animations. Therefore, their is no delay between creating an image and displaying it. Once the active web page is downloaded on to client system then their is no need to contact the server again unlike in client pull. As a result a client computer will have full control on displaying an animation, slow internet connection doesn't matter. • Since the client computer takes the responsibilities to execute the program web server is relieved to do that. This will reduce the burden on web server. Unlike in dynamic web page, program is executed at server side and when many users accessing the server leads to delay in processing the information by the web server. But in case of active web pages it is responsibilties of client computer.
  • 5. When not to use the active web page • Active web pages are mainly used for client side animation. However they are not useful when server side programming is required. Server side programming is required for business logic and validation of the database. For instance user entered user id and password, active web page can't be used because these information/details are to be validated against user id's and password are stored at server side database. Active web page are used for mainly client side execution of code for example applets.
  • 6. Java Applets • An applet is a small program which is written in the Java programming language and is embedded in HTML page to form a web page. An applet makes a web page active. An applets get downloaded to web browser along with the requested web page and is executed there under the control of the Java Virtual Machine (JVM) installed in the web browser. An applets then create animation on the client computer.
  • 7. Life Cycle of Java Applet • Java applet is event driven similar to operating system has Interrupt Service Routine (ISR). An applets wait until specific event happens. When such an events occurs, the applet receive information from the java virtual machine(JVM) inside the browser. The applet is then has to take an appropriate action and upon completion give back control to JVM. For example when user moves the mouse inside an applet window, applet is informed that there is mouse driven event. Typical life cycle of the java applet is:-
  • 8. When an applet is executed for the first time, the init(), start() and paint() methods are called in the said sequence: • init() : it is used for initialize variable or for doing any other start up processing. It is called during the life time of an applet. • Start() : this method is called after init(). It is also called to restart an applet after it is stopped. Whereas init() is called only one once, start() method is called every time the web page open the containing the applet displayed on the screen. Therefore, if user leaves a web page open and come back to it, the applet resume execution at start(). • Paint() : this method is called each time the applet output must be redrawn. For instance window of other application can overwrite the window in which applet is running or the user minimze and then restore the applet window.
  • 9. • Stop() : this methos is called when user leave the web pages containing the applet. This can happen when user select or type the url of other web page. The stop() method is used to suspend all the threads that are running for an applet. • Destroy() : this method is used when environment determines that applet needs to be removed completely from the client directory. This method is then free all the resources are used by the applet.
  • 11. • Simple applet example • <html> • <body> • <applet code=”TestApplet” width=”200” height=”250”</applet> • </body> • </html>
  • 12. Java Beans • Reusability comes at the core of any modern computer language's framework. It is often desirable to use components you previously built in recurring environments. In Rapid Application Development, these prove more helpful as you can drag them off a list of components and use it elsewhere in your project. Such level of reusability is added into the Java Programming language with the help of the JavaBeans architecture. JavaBeans are the mainstream Java component model, introduced in 1996 by Sun Microsystems. JavaBeans are defined as follows:
  • 13. "A JavaBean is a reusable software component that can be manipulated visually in a builder tool." • A software component is a reusable object that can be plugged into any target software application. You can develop software components using various programming languages, such as C, C++, Java, and Visual Basic. • A “Bean” is a reusable software component model based on sun’s java bean specification that can be manipulated visually in a builder tool. • The term software component model describe how to create and use reusable software components to build an application.
  • 14. • Builder tool is nothing but an application development tool which lets you both to create new beans or use existing beans to create an application. • To enrich the software systems by adopting component technology JAVA came up with the concept called Java Beans. • Java provides the facility of creating some user defined components by means of Bean programming. • We create simple components using java beans. • We can directly embed these beans into the software.
  • 15. Advantages of Java Beans: • The java beans posses the property of “Write once and run anywhere”. • Beans can work in different local platforms. • Beans have the capability of capturing the events sent by other objects and vice versa enabling object communication. • The properties, events and methods of the bean can be controlled by the application developer.(ex. Add new properties). • Beans can be configured with the help of auxiliary software during design time.(no hassle at runtime). • The configuration setting can be made persistent.(reused). • Configuration setting of a bean can be saved in persistent storage and restored later.
  • 16. What can we do/create by using JavaBean: There is no restriction on the capability of a Bean. • It may perform a simple function, such as checking the spelling of a document, or a complex function, such as forecasting the performance of a stock portfolio. A Bean may be visible to an end user. One example of this is a button on a graphical user interface. • Software to generate a pie chart from a set of data points is an example of a Bean that can execute locally. • Bean that provides real-time price information from a stock or commodities exchange.