views:

670

answers:

3

I searched for this subject on Google and got some website about an expert sexchange...so I figured I should just ask here instead.

How do you embed a JApplet in html on a webpage?

+1  A: 

Use the <applet> tag. For more info: http://java.sun.com/docs/books/tutorial/deployment/applet/html.html

pkaeding
+5  A: 

Here is an example from sun's website:

<applet code="TumbleItem.class" 
        codebase="examples/"
        archive="tumbleClasses.jar, tumbleImages.jar"
        width="600" height="95">
    <param name="maxwidth" value="120">
    <param name="nimgs" value="17">
    <param name="offset" value="-57">
    <param name="img" value="images/tumble">

Your browser is completely ignoring the &lt;APPLET&gt; tag!
</applet>
Mike Stone
+2  A: 

Although you didn't say so, just in case you were using JSPs, you also have the option of the jsp:plugin tag?

toolkit