Sie sind auf Seite 1von 6

E-Content of

INTERNET TECHNOLOGY AND WEB DESIGN

Chapter : 10.2 Interactive Tools

Topic : 10.2.4 Java and Front Page

Java and Front Page

• Java is an advanced, standardized, object-oriented programming


language that can be used for many applications, not just web pages.

• Java has a unique quality, however that has made it particularly useful
for web pages.

 Programs written in java can run without modification on a broad


variety of computers (platforms) (I.e.) java is multiplatform or
platform-neutral.

• It can be used to create animated web pages that interact with the user
or pages that use the screen in unexpected ways.

• Java is a programming language originally developed by James Costing


at SUN MICROSYSTEMS and released in 1995 as a core component of
Sun Microsystems Java Platform.

• The language drives much of its syntax from C and C++ but has a
simpler object model and fever low level facilities.

• Java applications are typically compiled to byte code (class file) that can
run on any Java Virtual Machine (JVM) regardless of computer
architecture.

Primary Goals

• There are five primary goals in the creation of the Java language

 It should be “Simple, Object Oriented and familiar”.

 It should be “robust and secure”.

 It should be “architecture neutral and portable”.

Page | 16
E-Content of
INTERNET TECHNOLOGY AND WEB DESIGN
 It should execute with “high performance”.

 It should be “interpreted, threaded and dynamic”.

Java Features

Applet

• Java applets are programs that are embedded in other applications,


typically in a web page displayed in a web browser.

Servlet

• Java Servlet technology provides web developers with a simple,


consistent mechanism for extending the functionality of a web server
and for accessing existing business systems.

• Servlets are server-side JavaEE components that generate responses


(typically HTML pages) to requests (typically HTML pages) from clients.

• A servlet can almost be through of as an applet that runs on the server


side-without a face.

Java Server Page

• JSPs are Server-side JavaEE components that generate responses,


typically HTML pages, to HTTP requests from clients.

• JSP's embed Java code in an HTML page by using the special


delimiters <% and %>.

• A JSP is compiled to a Java Servlet, a Java application in its own right,


the first time it is accessed. After that, the generated servlet creates the
response.

Swing Application

• Swing is a graphical user interface library for the Java SE platform. It is


possible to specify a different look and feel through the pluggable look
and feel system of swing.

Page | 17
E-Content of
INTERNET TECHNOLOGY AND WEB DESIGN
• Java program on the web can do everything as scripting language like
JavaScript can do and can generally do it faster.

• Java usually runs faster because the programs that are attached to Web
pages are in binary form (machine-readable form).

• Java is more useful as it is designed to work across the Internet (and


across networks in general).

• Java programs can use Internet services such as e-mail, file transfer
and telnet, as well as web services to interact with programs around the
world.

What are Java Applets?

• A Java Applet is small program written in the Java programming


language.

• Applets are contained in separate binary files called class files that must
be downloaded to their browser in additional to the HTML Web
pages.(Sometimes, the applet relies in turn on other binary files, called
library class files, that must also be downloaded.)

• Special instructions in the HTML code of the Web page file (the
<APPLET>) associate applet files with the Web page, and transmit data
to the applet that tells it how to operate.

How to get Applets?

• To write a Java applet, user must have good programming skills and
understand how to use a compiled object-oriented language.

• User also need same sorts of special tools that developers in other
sophisticated languages like C or C++ require: compilers, linkers,
libraries, debuggers, documentations and the like.

Page | 18
E-Content of
INTERNET TECHNOLOGY AND WEB DESIGN
• The original collections of tools for this purpose is called the Java
Development Kit (by Sun Microsystems, who pioneered the Java
language) and is available at http://java.sun.com.

How to Use Applets?

• To use an applet with their webpage, user must add tags to their web
page and place the class file (the applet file) on their usually in the same
directory as their web page.

• Following is an example of one way the code is often written, using the
<APPLET> and </APPLET> tags.

• The example uses a hypothetical applet called sitemap. Class that


creates a graphical image displaying a table of contents (“site map”) for
their Web site.

<APPLET CODE=”sitemap.class” WIDTH=”400” HEIGHT=”400”>

<PARAM NAME=”bicolor” VALUE=”white”>

<PARAM NAME =”font” VALUE = “medium | bold”>

<PARAM NAME = “url” VALUE= “http://yoursite.com/”>

</APPLET>

Front Page

• FrontPage is a web page editor from Microsoft. It is a stand-alone


application that user can purchase separately.

Page | 19
E-Content of
INTERNET TECHNOLOGY AND WEB DESIGN
• FrontPage has many more features than FrontPage express. It allows to
view and manage the overall structure of their websites and create web
pages.

• A web site is a collection of related files that are linked together to form
an information unit that user can publish on web.

• FrontPage is their web navigation center, the place where users starts
and finish their work on the web.

• FrontPage web is simply a web site that was created in or is maintained


with FrontPage.

• When user construct a web site they can create individual web pages
and string them together with links so that visitors can easily jump from
pages to pages.

• FrontPage simplifies the process with built in website templates and


wizards.

FrontPage solution to web publishing

• User can create a web site from scratch using any text editor. The web
smart components of FrontPage 2000 that make the task easier for
users are

 Server Extension

 Add-on programs for web server software that make the server
FrontPage aware and able to interact more closely with FrontPage
webs.

 FrontPage View

 The different views of web that allow user to add, remove and
rename resources, keep all the hyperlinks upto date, edit web
pages in a powerful yet easy to use HTML editor are

 Page view – Reports view

Page | 20
E-Content of
INTERNET TECHNOLOGY AND WEB DESIGN
 Navigation view – Hyperlink view

 Tasks view – Folder view

 Image Composer

 It is an Image editor that lets user to create, modify or import


images for any web site.

Page | 21

Das könnte Ihnen auch gefallen