Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Please Help  RSS feed

Chi Tang
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All:
I am trying to use the java script to embed a applet on the html
page then I also need to pass some of the parameter from the html page into this applet.
The applet shows up but it can't get the parameter passed
by the java script. I am using the
I know we can't longer use the applet tag to pass the parameter
and we need to use java plugin.However, after reading sun's documentation. I still don't understand how to use the java plugin to pass the parameter. Can You guy give me some example
Thanks a lot
<APPLET CODE="wt/boot/BootstrapApplet.class ARCHIVE=wt/security/security.jar WIDTH=\"500\" HEIGHT=300>
<PARAM NAME=boot_jar VALUE=wt.jar>
<PARAM NAME=boot_class VALUE=ext.spgg.doc.kwcommondoc.ContentApplet>
<PARAM NAME=cabinets value=\"wt/security/>
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chi,
To use the plug-in you need to use the EMBED HTML tag for Netscape and the OBJECT HTML tag for IE. The OBJECT tag is almost identical to the APPLET tag.
This might be your code for IE:
width=500 height=300
codebase=",3,0,0" >
< PARAM NAME=boot_jar VALUE=wt.jar>
< PARAM NAME=boot_class VALUE=ext.spgg.doc.kwcommondoc.ContentApplet>
< PARAM NAME=cabinets value=\"wt/security/>
For Netscape it gets a little tricky, but still not tough:
< EMBED TYPE="application/x-java-applet;version=1.3"
cabinets="wt/security/" >
< /EMBED >
Look here for a great explanation with examples:
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!