applet tag vs Object tag

As per W3Schools HTML applet tag is not supported in HTML5. Need to use <Object> tag instead of <applet> tag.
For more details follow this link: http://www.w3schools.com/tags/tag_applet.asp
http://dev.w3.org/html5/spec/obsolete.html#the-applet-element
Point 11.2 Non-conforming features
So, I go ahead and the change the code as below depicted.
Below code that is working with <APPLET> tag:
+<Applet+
style    = "position:absolute;border:0px;left:184;top:95;height:180;width:364;"
code     = "jtreeviewapplet.JTreeViewAppletMain.class"
name     = "TreeView"
id       = "TreeView"
hspace   = "0"
vspace   = "0"
align    = "top"
archive  = "/Project/HTML/ABC/XYZ.jar,/Project/HTML/ABC/ABC.jar"
MAYSCRIPT>
+<PARAM NAME="onSelected" VALUE="onSelect_Handler">+
+<PARAM NAME="onFinishNormalize" VALUE="onFinishNormalize_Handler">+
+</Applet>+
Here is the snippet, whcih have been changed to <OBJECT> tag so as to support HTML5 in future:
+<OBJECT type=" application/x-java-applet"+
style    = "position:absolute;border:0px;left:184;top:95;height:180;width:364;"
name     = "TreeView"
id       = "TreeView"
hspace   = "0"
vspace   = "0"
align    = "top"
+>+
+<PARAM name="code" value=”jtreeviewapplet.JTreeViewAppletMain.class”>+
+<PARAM name="codebase" value="/Project/HTML/ABC/">+
+<PARAM name="archive" value=" XYZ.jar">+
+<PARAM name="archive" value=" ABC.jar">+
+<PARAM name="scriptable" value="true">+
+<PARAM NAME="onSelected" VALUE="onSelect_Handler">+
+<PARAM NAME="onFinishNormalize" VALUE="onFinishNormalize_Handler">+
+</OBJECT>+
After changing the *<applet>* tag to *<object>* tag , my applet itself is not loading and it gives class not found exception for jtreeviewapplet.JTreeViewAppletMain.class.
(Note: For both working and not working condition, I am using latest JDK 1.7 update 9 for compiling the code and in my system I am having latest JRE1.7 update 9 to run the applet code. I am using InternetExplorer 8 and InternetExplorer 9 browser)
Can anybody help me to find out where I am going wrong?
Edited by: 975931 on Dec 12, 2012 1:24 AM

You might want to stick to the documentation:
http://docs.oracle.com/javase/tutorial/deployment/index.html
and use the deployment toolkit.
PS: use \ tags when posting anything code related. That makes it readable and it keeps the forum from trying to interpret it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Applet registered through object tag doesn't work

    Hi..
    If i register an applet through <OBJECT> tag, the applet doesn't appear, but if registering through <applet> tag, it works.
    what happens?
    is there anybody can tell me why?

    The html <object> codes used are below.
    <OBJECT
    classid = "clsid:CAFEEFAC-0014-0002-0004-ABCDEFFEDCBA"
    codebase = "http://java.sun.com/update/1.4.2/jinstall-1_4_2_04-windows-i586.cab#Version=1,4,2,40"
    WIDTH = 100 HEIGHT = 100 >
    <PARAM NAME = CODE VALUE = "MyApplet.class" >
    <PARAM NAME = "type" VALUE = "application/x-java-applet;jpi-version=1.4.2_04">
    <PARAM NAME = "scriptable" VALUE = "false">
    <PARAM NAME = MAYSCRIPT VALUE = true >
    </OBJECT>
    and the parent html file that contain "<iframe> tag" portion is written as below
    <iframe src=iframe_testApplet.htm name=AppletLoader frameborder="no" height=150 width=150 scrolling="no"></iframe>
    and all the parent html file and the iframed-file and the class file is in the same directory. so i didn't specify the "codebase" attribute above. and moreover, when i put a code that specifies the codebase though, it doesn't still work.
    the code specifying codebase is like this.
    <PARAM NAME = CODEBASE VALUE=".">
    I just want to let know that actually I solved above problem just before with some minor change. but I still want to know why it works at this time because there is not so much difference between before and after.
    the change I did is
    1. I rewrite all html code into jsp code
    2. in the jsp code, I specify the codebase with "<%= request.getContextPath()%>/aPath"
    But as you can see, the code base is the directory that contains all the files, parent html file, iframed file and a classFile, although I changed some minor codes, that cannot make it work if it doesn't work without the minor code-change because eventually it has same context from code viewpoints.
    As of now, I just take it as just a JRE bug. Can anyone let me know why it happens?

  • Applet tag and Object tag.

    Hi All,
    My application is hanging which is using Applet.I have specied in IE settings to use Sun's JVM[plug in].Applet tag is now depricated they [W3c] recommend to use Object tag for IE.Is my problem somewhere related to this?what difference does it make.?Please help me its very urgent.
    Cheers:
    Akash.

    Currently the applet is running through Applet tag.my application is using As400 emulator tn5250j which i am showing through Applet.The second frame is showing images. After entering data in As400 screen i am submitting data through submit button which is on second frame.but after submitting applet screen got hung.dont know the reason code seems to be fine.no memory leakages.
    thx for reply.

  • Performance problem using OBJECT tag

    I have a performance problem using the java plugin and was wondering if anyone else was has seen the same thing. I have a rather complex applet that interacts with java script in a web page using the LiveConnect API. The applet both calls javascript in the page and is called by java script.
    Im using IE6 with the java plugin that ships with the 1.4.2_06 JVM. I have noticed that if I deploy the applet using the OBJECT tags, the application seems the trash everytime I call a java method on the applet from javascript. When I deplot the same applet using the APPLET tag the perfomance is much better. I would like to use the OBJECT tag because it applet bahaves better and I have more control over the caching.
    This problem seems to be on the boundaries of IE6, JScript, the JVM and my Applet (and I suppose any could be the real culprit). My application is IE5+ specific so I can not test the applet in isolation from the surround HTML/JavaScript (for example in another browser).
    Does anyone have any idea?
    thanks in advance.
    dennis.

    I have a performance problem using the java plugin and was wondering if anyone else was has seen the same thing. I have a rather complex applet that interacts with java script in a web page using the LiveConnect API. The applet both calls javascript in the page and is called by java script.
    Im using IE6 with the java plugin that ships with the 1.4.2_06 JVM. I have noticed that if I deploy the applet using the OBJECT tags, the application seems the trash everytime I call a java method on the applet from javascript. When I deplot the same applet using the APPLET tag the perfomance is much better. I would like to use the OBJECT tag because it applet bahaves better and I have more control over the caching.
    This problem seems to be on the boundaries of IE6, JScript, the JVM and my Applet (and I suppose any could be the real culprit). My application is IE5+ specific so I can not test the applet in isolation from the surround HTML/JavaScript (for example in another browser).
    Does anyone have any idea?
    thanks in advance.
    dennis.

  • APPLET   vs. EMBED or OBJECT tag in JDeveloper

    HI Gentlemen,
    Recently I learned from ADF Code Corner, Item 71, how to set up a client/server communication applet for an ADF application. The solution uses the JavaScript framework on the client. However, it is also stated that "Note that the APPLET tag is used instead of the EMBED or OBJECT tag that would be needed to explicitly invoke Java run by the Java PlugIn." This suggests that I can write a Java program independent of my ADF application which could control a local smartcard reader (this already works fine with German KVK and eGK). Now I would like to trigger this external Java program in my .jspx page to read the contents of a card and communicate it to the page. If this were possible, I could avoid JavaScript at all. It must be installed on the client to access a local smartcard reader. Please drop a few lines where can I find guidance or a working example if any.
    Thanks, kind regards
    Miklos HERBOLY

    Hi,
    if you want to talk to ADF Faces pages on the client side then this through JavaScript. The other alternative is to allow the Applet to perform a server side update (object or database) and then have the ADF Faces app checking for it (af:poll or Active Data Services).
    Frank

  • JDK 1.4.2_10; problem with applet/classpath/OBJECT tag

    I'm supporting an applet that needs to run in JDK 1.4.2_10 in order to work. (I don't own the code, so I can't fix the issue)
    I'd like to force that particular applet to run under JDK 1.4.2_10, but allow other applets to run on the current default JVM.
    I'm trying to do this by using the JDK's htmlconverter.exe utility to force the use of JDK 1.4.2_10. That part is working as expected, but I'm experiencing a side effect.
    The problem is that, when I use the OBJECT tag instead of the APPLET tag, the browser attempts to download the class with this URL
    http://hostname.here.com/app.testing/app.testbed/classes/appls%2fDOLARS%2fuser%2fApplet%2fclass.class
    instead of this URL
    http://hostname.here.com/app.testing/app.testbed/classes/appls/DOLARS/user/Applet.class
    The second URL works; the first does not. When I use the APPLET tag, it generates the second URL and downloads the class successfully.
    I'd like to a) use the OBJECT tag. b) get it to use the correct URL to download the Applet.class file. What do I need to do to make this happen?
    Thanks,
    Tom Valesky

    Here's the exception I'm getting (slightly sanitized):
    Java Plug-in 1.4.2_10
    Using JRE version 1.4.2_10 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\tvalesky
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to
    load: class appls/DOLARS/user/Applet.class not found.
    java.lang.ClassNotFoundException: appls.DOLARS.user.Applet.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed:http://hostname.com/DOLARS.testing/dolars.testbed/classes/appls%2fDOLARS%2fuser%2fApplet%2fclass.class
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: appls.DOLARS.user.Applet.class

  • Applet in Object tag IE8

    Hi Ppl,
    I have got a requirement where i need to invoke an applet from browser and should be working across all browsers. Since APPLET tag is deprecated since HTML4, i was trying to use OBJECT tag to embed it, and it works fine in FF and Chrome, but in IE8 it doesnt work.Any thoughts on how to make it work on IE8 and above?
    The HTML file is something like below
    <!doctype html>
    <object
    width="0px" height="0px" tabIndex="-1"
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codeBase="https://java.sun.com/update/1.6.0/jinstall-6u16-windows-i586.cab#Version=1,4,2"
    type="application/x-java-applet" >
    <param name="archive" value="applettext.jar" />
    <param name="code" value="DrawingLines" >
    <param name="mayscript" value="yes">
    <param name="scriptable" value="true">
    </object>

    841335 wrote:
    ..I have got a requirement where i need to invoke an applet from browser and should be working across all browsers. .. That will never happen. There is always some browser/JRE/applet interaction bug. Besides that, some end users do not have Java installed and either will not (through personal choice) or cannot (through system administrator choice) install it.
    ..Since APPLET tag is deprecated since HTML4, i was trying to use OBJECT tag to embed it, ..Don't. Instead use Oracle's deployJava.js to check for a minimum JRE, prompt the user to install it if missing, and launch the applet.
    The HTML file is something like below2 points.
    <li> When posting code, code snippets, HTML/XML or input/output, please use the code tags as described on the 'sticky post' on the top of the forum thread listing.
    <li> Please do not waste you time, or attempt to waste mine, with any of the above that is +'something like'+ what you have. Either copy/paste it, or don't waste the bandwidth.

  • Run applet with object tag

    Hi people.
    I need your assistance in my problem.
    I try to run the simple applet (from Java Tutorial Documents):
    import java.applet.Applet;
    import java.awt.Graphics;
    public class HelloApplet extends Applet {
    public void paint(Graphics g) {
    g.drawString("Hello Applet!!", 10, 10);
    with a help of two different HTMLs.
    First with an <APPLET> tag:
    <HTML>
    <BODY>
    <APPLET CODE="dir1.class" WIDTH=150 HEIGHT=25>
    </APPLET>
    </BODY>
    </HTML>
    Second with an <OBJECT> tag:
    <HTML>
    <BODY>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
         codebase="http://javaweb.eng/plugin/jre-1_2_2-win.exe#Version=1,2,0,0"
         align="left" border="0" width="100%" height="100%">
    <param name="code" value="dir2.class">
    <param name="codebase" value="./">
    <param name="type" value="application/x-java-applet;version=1.2">
    </OBJECT>
    </BODY>
    </HTML>
    The problem is that in case of <APPLET> tag everything is OK.
    In case of <OBJECT> tag the applet don�t run.
    And that is only on my machine.
    On the others everything is OK in both cases.
    HELP!!!
    My machine properties:
         Win95
         IE5.5
    PlugIN: jre1_2_2-win.exe

    Hmmm... I've already seen the Java Plugin going mad if you make too much experimentations with it.
    My advice : uninstall it properly and make it be reinstalled by the automatic plugin installation of IE (just by loading the HTML page with the <OBJECT> tag).
    I hope it will work...
    Matthieu

  • Applet doesn't work with object tags--PLZ HELP!

    <NOEMBED>
    </NOEMBED>
    </EMBED>
    </COMMENT>
    </OBJECT>

    ooops! The applet is not displayed with object tags generated by HtmlConverter utility, The applet is supposed to display a JTable and connect to Oracle DB using JDBC. The web server is Tomcat 4.1.29
    <OBJECT
        classid = "clsid:CAFEEFAC-0014-0001-0002-BBCDEFFEDCBA"
        codebase = "http://java.sun.com/products/plugin/autodl/jinstall-1_4_1_02a-windows-i586.cab#Version=1,4,1,21"
        WIDTH = 800 HEIGHT = 500 NAME = "Edit Trunks" >
        <PARAM NAME = CODE VALUE = "cbhtolApplet.class" >
        <PARAM NAME = ARCHIVE VALUE = "trnkapplet.jar,ojdbc14.jar" >
        <PARAM NAME = NAME VALUE = "Edit Trunks" >
        <PARAM NAME = "type" VALUE = "application/x-java-applet;jpi-version=1.4.1_02a">
        <PARAM NAME = "scriptable" VALUE = "false">
        <COMMENT>
            <EMBED
                type = "application/x-java-applet;jpi-version=1.4.1_02a"
                CODE = "cbhtolApplet.class"
                ARCHIVE = "trnkapplet.jar,ojdbc14.jar"
                NAME = "Edit Trunks"
                WIDTH = 800
                HEIGHT = 500
                scriptable = false
               pluginspage = "http://java.sun.com/products/plugin/index.html#download">
                <NOEMBED>
                </NOEMBED>
            </EMBED>
        </COMMENT>
    </OBJECT>Appreciate your help!

  • Applet OBJECT tag to install 1.6.0.22 - harder than you think!

    Hi there,
    Using the OBJECT tag, I've placed an applet on a webpage. I need the user to download the JRE if it's not installed, so I added this attribute to my OBJECT tag and it seems to work.
    codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab"
    Unfortunately, right now this causes jre 1.6.0.18 to be installed, which consistently crashes once the install has completed, requiring the user to close the browser and return before viewing the applet (known issue I believe "http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=5288ea4b825d095f0bf29977ada?bug_id=6925315").
    I therefore want the more recent 1.6.0.22 version to be installed instead which won't crash, but I cannot figure out what to change the codebase attribute to accomplish this. It always seems to install 1.6.0.18! I've also tried the following without success:
    codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,0"
    codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,99"
    codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,22"
    Any tips would be immensly helpful!

    Cross posted
    http://www.java-forums.org/java-applets/35025-object-tag-automatically-install-1-6-0-22-since-1-6-018-crashes.html
    Any more?
    db

  • I can load an Applet .class file with an OBJECT tag...

    How can I load a .jar file? I foolishly believed I could replace "myclass.class" with "myjar.jar" in the <PARAM> tag associated with an <OBJECT> tag, and if I had created my manifest file correctly, the Main-Class in my .jar would have its init() method called upon IE load of the web-page. But alas, it is not that simple.
    Is there an incantation of the <OBJECT> tag that is appropriate for .jar files?
    Thanks in advance for any help you can provide in this area.

    Please ignore the duplication. My browser burped, and I can't seem to figure out how to delete a thread.
    See answer posted in other thread.

  • Cursor not focusing in the text field after Object tag load in IE

    Hi,
    We have an applets class "ABC.class" in our application. To include this class in a jsp page we are using OBJECT tag. This tag is written inside a if block in the jsp page. Based on the if condition this OBJECT tag has to be loaded. Below is the code we are using:
    <%
    if(testCondition)
    %>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" NAME="applet" width="0" height="0">
    <PARAM NAME="CODE" VALUE="ABC.class" >
    <input type="hidden" id='myText' value="Please configure the jinitiator version to Oracle applicaitons Jinitiator version." >
    No JDK 1.3 support for APPLET!!
    </OBJECT>
    <%
    %>
    In the above code if the "if condition" is satisfying, then cursor is not focusing on the required field. The code to focus on the field is written in the javascript function which is called onLoading the page.
    we are using IE 7 and IE8. In IE 7 sometimes working fine but in IE 8 we are getting this issue.
    Can anyone please help us how to focus the cursor on the required field even in the case of the Object tag loading.
    Thanks,
    Eswari

    Hi Nicky,
    Thanks for your reply.
    We are not using JQuery.
    Actually the code to focus is written in the function which is called onLoad of the page that will be executed after the page loading. If we keep alerts in the onLoad function then the cursor is focusing to the required field.
    Thanks,
    Eshwari

  • How to embed jnlp file into html page using object tag

    hi everyone,
    i have written one jnlp file like this.
    <?xml version="1.0" encoding="utf-8" ?>
    <!-- JNLP file for Demo applicaion -->
    <jnlp spec="1.0+" codebase="http://localhost:9080/base/" href="SampleExample.jnlp">
         <information>
              <title>Demo Application</title>
              <vendor> </vendor>
              <description>Sample Demo Application</description>
              <offline-allowed/>
         </information>
         <security/>
         <resources>
              <j2se version="1.3+" />
              <jar href="common.jar" main="true" download="eager" />
              <jar href="classes12.jar" download="eager" />
              <jar href="toplink.jar" download="eager"/>
              <package name="com.applet.*" part="applet" recursive="true"/>
         </resources>
         <applet-desc name="grid" main-class="com.applet.PriceGrid" width="1000" height="300"/>
    </jnlp>
    i am trying embed that jnlp file using object tag like
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">     
    <PARAM NAME="jnlp" VALUE="http://localhost:9080/base/SampleExample.jnlp">
    </OBJECT>
    but i am not able to load the applet using Web Start.
    Can anyone please help me. This is very Urgent for me.
    Thanks & Regards,
    Shiva.

    thanks.
    i am giving my problem clearly. i have one applet. Previously i am loading the applet in my html page using object tag like this...
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">
    <PARAM NAME="CODE" VALUE="com.adp.base.applet.PriceGrid.class" >
         <PARAM NAME="ARCHIVE" VALUE="common.jar,classes12.jar,toplink.jar" >
         <PARAM NAME="NAME" VALUE="grid" >
    <PARAM NAME="type" VALUE="application/x-java-applet">
    <PARAM NAME= "cache_option" VALUE ="no">
    </OBJECT>
    now what i need to do is
    i need load the applet only first time using web start and when ever the applet code changes in the server i need to reload the applet.
    for that i kept all the applet resources in .jnlp file.i want to cache all the resources which are in .jnlp file and applet must be displayed within a web page within a browser.
    Webstart always open a new application windows.
    I need to run an Applet embedded within a web page within a browser.
    Is there a way to still use Webstart?

  • How can I create Object Tag which supports Sun and MS JVM both.

    Hi,
    I have created object tag as shown below
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    name = "TestApplet" height="0" width="0" >
    <param name="code" value="com.apps.TestApplet.class" />
    <param name="codebase" value="codes" />
    <param name="archive" value="TestApplet.jar" />
    </object>
    The above tag is working fine with the below JVM combinations in Windows XP.
    1) Only Sun JVM
    2) Only MS JVM
    3) Sun JVM & MS JVM
    But these conditions are not working with Windows 2000.
    How we can create object tag which will support for these two opertating systems?

    I am not able to understand the problem. From my understanding, you have an applet which you are trying to display in a browser using <object> tag. If that is the correct then all it matters is the browser and the JRE�
    For example the below code when put in a JSP or a HTML, will use JRE 1.6.0_01 that is available on the client machine. If that is not available on the client machine then it will try and download automatically in IE.
    This below code is for IE� if you are using Mozilla Firefox then you need to change the �classid� attribute to �java: com.foo.bar.ui.MyClass�
    <OBJECT ID="Gantt" classid = "clsid:CAFEEFAC-0016-0000-0001-ABCDEFFEDCBA"
                  codebase = "http://java.sun.com/update/1.6.0/jinstall-6u1-windows-i586.cab"
                  WIDTH = "980" HEIGHT = "495" ALIGN = "baseline">
                   <PARAM NAME="cache_option" VALUE="Plugin">
                  <PARAM NAME ="CODE" VALUE = "com.foo.bar.ui.MyClass" >
                  <PARAM NAME="MAYSCRIPT" VALUE="true">
                  <PARAM NAME ="cache_archive" VALUE = "Myjar.jar /" >
                  <PARAM NAME = "type" VALUE = "application/x-java-applet;jpi-version=1.6.0">
                  <PARAM NAME = "scriptable" VALUE = "false">
                  <strong>
                     This browser does not have a Java 1.6.0_01 Plug-in.
                     <br />
                     <a href="http://java.sun.com/update/1.6.0/jinstall-6u1-windows-i586.cab">
                       Get the latest Java Plug-in here.
                     </a>
              </strong>
            </OBJECT>

  • Object tag problem

    hi all......
    i unable to identify where sould i make changes to use java plug in from installed jre 1.6 in my system??
    i m using jdk1.6.0,IE7.0,xp sp2
    please mark the line and suggest me!!
    below is my jsp page
          <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
        width="200" height="200" align="baseline"
        codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">
        <PARAM NAME="code" VALUE="myclass.class">
        <PARAM NAME="codebase" VALUE="registration/">
        <PARAM NAME="type" VALUE="application/x-java-applet;version=1.2.2">
        <PARAM NAME="model" VALUE="models/HyaluronicAcid.xyz">
        <PARAM NAME="scriptable" VALUE="true">
            No JDK 1.2 support for APPLET!!
    </OBJECT>i want to run japplet in jsp. please tell me also whether this tag is relevant or should i use other(please specify tag with its full code).
    any help would be much appreciated.

    I finally figured out how to get the object tag to work. The html fragment below is a typical solution:
         <object codetype="application/java" classid="java:MyApplet.class" width="250" height="400" style="vertical-align: baseline;">     <!-- Note: to force use of sun's Java Plugin, will need to change the classid; see http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/using_tags.html -->
                   <!-- Specify the Applet class to use: -->
              <param name="code" value="MyApplet.class">     <!-- for now, this is a duplicate of the info already in the above classid, but it will differ if use sun plugin -->
              <param name="codebase" value="./">
              <param name="archive" value="./appletResources.jar">
                   <!-- Specify archive caching (see http://java.sun.com/j2se/1.3/docs/guide/misc/appletcaching.html): -->
              <param name="cache_option" value="No">
              <param name="cache_archive" value="./animationResources.jar">
                   <!-- Specify below any optional param elements any further properties specific to MyApplet: -->
              <param name="someParameter" value="someValue">
                   <!-- Text to display if Java not supported: -->
              A Java applet should be here, but either your browser does not support Java, Java has been disabled, or an error occurred.
         </object>The html fragment above validates against the strict html 4.01 DTD.
    It has been sucessfully tested against Mozilla 1.1, IE 6 sp1, and Sun's appletviewer program.
    It will fail, however, in the horrid Netscrape 4.x series of browsers.

Maybe you are looking for