Correct Applet Tag?

What’s the correct applet tag to use in an HTML page. I am aware that is quite common, but I remember to be important for the Internet Explorer?

So my question:

  1. Does the tag work for ALL browsers (IE, Netscape, Firefox, …)? If not, what do I need to do?
  2. How do I tell that the minimum version is Java 1.5?

anybody? that’s a rather easy question?

Look at htmlconvert.exe in the jdk. With this tool you just create an html page with the applet tag, and it converts it into an OBJECT tag (or embed).

OBJECT/embed allows you to specify the minimal jre version to use, or an exact version (1.5.0_9b6 for example).

with the applet tag, it can be any version from the MS 1.1 to the latest JRE…

(The 1.5 version of htmlconvert is much better than the older ones…)

Lilian

That’s great! I never heard about it before! Thanks a bunch.

Is there a way to use htmlconvert with Ant? I would like to integrate it into my build path.

don’t know, I generally extract the code and copy/paste it in other pages… you should read its documentation (in the jdk docs, search for “tool docs”)

I think there’s also a bunch of JSP tags to do the same, may be others in PHP, might be worth to check.

Lilian

Alright, thanks for the help. I found the “Ant”-code to invoke the htmlconverter if anybody is interested:


<java jar="${jdk.home}/lib/htmlconverter.jar"
      fork="true"
      failonerror="true"
      maxmemory="128m">
   <arg value="-source"/> 
   <arg value="${web}"/>
   <arg value="-dest"/>
   <arg value="${web}"/>
   <arg value="&quot;*.jsp&quot;"/>
</java>