Jump to Real's How-to Main page

Launch an applet from a JSP

The jsp:plugin tag will generate the right html code to load your Applet.
<jsp:plugin type="applet"
            code="TestApplet.class"
            width="500"
            height="300">

   <jsp:params>
      <jsp:param name="message" value="Hello, world"/>
      <jsp:param name="action" value="<%=AppletAction%>"/>
   </jsp:params>

   <jsp:fallback>
      <p> unable to start plugin </p>
   </jsp:fallback>
</jsp:plugin>

If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2006
[ home ]