|
 |
pro_jsp thread: JSp Vs Applet
Message #1 by Amitav <eramitav@y...> on Wed, 18 Dec 2002 20:25:57 -0800 (PST)
|
|
Applet: Applet is a program written in the Java (TM) programming language
that can be included in an HTML page, much in the same way an image is
included. When you use a Java technology-enabled browser to view a page that
contains an applet, the applet's code is transferred to your system and
executed by the browser's Java Virtual Machine (JVM).
For understanding Applet tag see
http://java.sun.com/products/jdk/1.1/docs/guide/misc/applet.html
IT'S impossible to use HTML for making Applet, only for including in the
HTML page! So you should have strong understanding the difference between
Java program and HTML code. HTML is not a programming language; this one is
the Hyper Text Markup Language using only for markuping data. The Java is
the program language; this one for build different kind of programs like
Applet, Application, Servlet, and, certainly, JSP.
Applet is able to produce, accept and display HTML code like any other
programs (MS Word and so on).
JSP: A JSP page is a text-based document that describes how to process a
request to create a response. The description intermixes template data with
some dynamic actions and leverages on the java 2 Platform.
For example, JSP can contain HTML code, JavaScript sections, and Java
program code together. The JSP runs on the server side, than generates and
sends to a client usual HTML code, so for client doesn't mean if he has call
ordinal HTML page or JSP, and client doesn't need to use Java Virtual
Machine (JVM) for looking JSP.
Summary: Applet is a small (or large) Java program delivered from server and
running on the client machine, JSP is a special kind of Java program
(According JavaServer Pages Specifacation 1.2) running on the server, HTML
is a special language using only for markuping data.
The best resource about Java is http://java.sun.com
About HTML is http://www.w3c.org
I hope it will help u!
==================================================
BeSt ReGaRdS Maslau Valery. (www.belpost.by) ICQ 155042687
Sun Certified Programmer for Java 2 Platform 1.4 Kit
-----Original Message-----
From: Greg Dunn [mailto:greg.dunn@n...]
Sent: Thursday, December 19, 2002 5:06 PM
To: Pro_JavaServer_Pages
Subject: [pro_jsp] RE: JSp Vs Applet
JSP: Client browser sends a request for A JSP page to the server, the
server processes the Java code comprising the page and any other Java
classes on the server called by the page and sends back a generated web page
to the browser, which as far as the browser is concerned is plain HTML.
An applet is an otherwise normal, usually small scale Java program which is
already compiled and is downloaded by the client and runs on the client
machine. An applet can be included in an HTML page and it can display HTML,
but you can't use HTML to create one.
Greg
-----Original Message-----
From: Amitav [mailto:eramitav@y...]
Sent: Thursday, December 19, 2002 4:55 AM
To: Pro_JavaServer_Pages
Subject: [pro_jsp] RE: JSp Vs Applet
Dear Mr vallery thanx for ur answer but in case of applet u can use HTML....
so what r the actual differences pls explain me.
thanx in advance
amit
TO_Valery@B... wrote:JSP is a kind of servlet, run on the server
side, where u can easily insert
HTML, the Applet is a small program run under JRE on the client machine.
For more information see the "Core Servlets and JSP" by Marti Hall.
==================================================
BeSt ReGaRdS Maslau Valery. (www.belpost.by) ICQ 155042687
Sun Certified Programmer for Java 2 Platform 1.4 Kit
-----Original Message-----
From: Amitav [mailto:eramitav@y...]
Sent: Thursday, December 19, 2002 6:26 AM
To: Pro_JavaServer_Pages
Subject: [pro_jsp] JSp Vs Applet
Hi ,
Can anybody pls explain what r the diff between JSP and APPLET?
thanx in advance,
amit
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
to unsubscribe send a blank email to u p
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
|
|
 |