Total members 11895 |It is currently Sun Dec 22, 2024 11:07 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka






* Project Name:   Add applet to jsp pluggin
* Programmer:   not known
* Type:   Plugin
* Technology:  Java
* IDE:   NONE
* Description:   Contain a Plugin to add your java applet to your jsp .There is a jar file and small applet example added .

Apple code
java code
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;

public class Applet1 extends JApplet {

boolean isStandalone = false;
TextArea textArea1 = new TextArea();
GridLayout gridLayout1 = new GridLayout(1,2);

public String getParameter(String key, String def) {

return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
}

public void init() {
try {
textArea1.setText("");
this.setSize(new Dimension(400, 296));
this.getContentPane().setLayout(gridLayout1);
this.getContentPane().add(textArea1, null);
}
catch(Exception e) {
e.printStackTrace();
}
}

//Get Applet information
public String getAppletInfo() {

return "Applet Information";
}

//Get parameter info
public String[][] getParameterInfo() {
return null;
}
}

JSP code
java code
<table>
<tr>
<td>
<jsp:plugin type="applet" code="Applet1.class"
codebase="/purejsp/TestApplet"
width="400"
height="300">
</jsp:plugin>
</td>
</tr>
</table>





Attachments:
File comment: applet within jsp
UseAppletInJsp.zip [85.35 KiB]
Downloaded 1307 times

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada
Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

updated.


_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : add applet to jsp
 load class to applet- load frame class to applet     -  
 First Applet     -  
 JFrame on applet     -  
 Java applet     -  
 applet in netbeans     -  
 Snake applet     -  
 Applet File Permission     -  
 how to connect applet with excel     -  
 Ball sticker applet     -  
 Ball Sticker{Applet}     -  



Topic Tags

Servlets/JSP, Java Applet
cron






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com