Home | Ajax | BioInformatics | Dojo | EAI | EJB | Hibernate | J2ME | Java | Java Glossary | Java Servlets | JavaScript | Jboss | JDBC | JDO | Jmeter | JSF | JSP | JUnit | Maven | MySQL | Spring Framework | SQL | Struts | Technology | WAP | Web Services | XML


 
  
 
Programming Tutorials: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML
 

 
Facing Programming Problem?
Ask Questions?, Browse Latest Questions, Question-Answer Guidelines
JSP
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments

Applet In Jsp

                          

In this example we are going to show you how you can use an applet in jsp. Before going deep into this program it is important to understand what is the meaning of an applet. Applets are small programs or applications written in java. These applets are those small programs that runs on web browsers, usually written in java. We can use the applets in jee also. In jee it runs on the context of web application on a client computer. This applet run in a container, which is provided by a browser or by through a plug- in. 

In this program we have made one applet in java. After making an applet in java we are using the applet class in the jsp by using the html tag <APPLET CODE = "JavaApplet.class" WIDTH = 200 HEIGHT = 150></APPLET>. This is one of the way by which can use an applet in jsp.

The code of the program is given below:

 

import java.applet.*;
import java.awt.*;
public class javaApplet extends Applet{
  public void paint(Graphics g){
    g.drawString("Welcome in Java Applet.",40,20);
  }
}

 

<HTML>
<HEAD><title>Applet In Jsp</title>
</HEAD>
<BODY>
<APPLET ALIGN="CENTER" CODE="javaApplet.class" WIDTH="800" HEIGHT="500">
</APPLET>
</BODY>
</HTML>

The output of the program:

Welcome in Java Applet.

Download this example.

                          

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Latest Searches:
jmenubar
setter
validate radio button
DateFormat
Linux Caixa Mâ??в????
charts using POI
Dâ??�°â?¬â?£?â
encapsulation
Read and update Excel
file uploading code us
java insert sort progr
excel from java
web logic tutorial
program in java to ins
String to array in jav
agards
find out factors of nu
how 2 comment a java l
checkbox struts 1
Java Count words,reve
length of string
write a program to tes
html:text tag
white spaces are requi
display image list
MurachÑ?â?£?Ñ?â???Ñ?â?
GPRS
forward servlet to jsp
select a table column
Date Examples java
client side validation
thumbnail in jsp
HOW TO INSERT VALUE FO
java memory deallocati
input in array
select() method
how to retrieve image
multidimensional Array
mutator method
find the number of day
jsp bean
retereive an image fro
the code of ShowTransp
string to sentence cas
lentgh of character in
editing
download struts applic
myfaces tomahawk
bluetooth
aprogram that will acc
java input/output serv
MurachаÐ??ТÐ???аÐ??
Combo Box operation in
insert column
MULTIPLE SELECT COMBO
java program to check
huffman code
html:form
ajax iFrame fileupload
dowmload java software
write a swing applicat
display images in jsp
jboss jnlp
web.xml for jsps
how to use JSpinner
Photoshop Cut out imag
using ms access
Linux Caixa Mâ?¨â??â?¨
the program will count
lentgh of character
using microsoft access
create text file using
to add a button
using fromIndex to che
coding by using hibern
using check box in dat
login
à®°?ய�ர?யà®?à®
two dimensional array
ะ ย ะà¸???ะÂ
Java String toLowerCase Example
Java String toCharArray Example
Java String substring Example
Java String indexOf Example
Java String startsWith Example
Java String hashCode Example
Java String matches Example
Java String length Example
Java String lastIndexOf Example
Java String isEmpty Example
Java String equalsIgnoreCase Example
Java String equals Example
Java String endsWith Example
Java String copyValueOf Example
Java String contentEquals Example
  EAI Articles
  Java Certification
Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.