Template Name : java-applet-portlet.jsp


Presents Java applet in a portlet.

Supported Media Types

Description of Media Types.

  • html

Element: parameter

Parameter that control the how the web page is converted into a portlet.

The following parameters will be used as attributes for the applet tag:

  • name
  • codebase
  • code
  • width
  • height
  • archive
  • border
  • align
The remaining parameters will be used as applet parameters.

Parameters common to many portlets.

Example of use

Portlet Entry
    <portlet-entry name="JavaMine" hidden="false" type="ref" parent="AppletPortlet" application="false">
            <title>Mine Sweeper Game</title>
            <description>Example of Java applet</description>
        <parameter name="codebase" value="." hidden="true"/>
        <parameter name="width" value="152" hidden="false"/>
        <parameter name="code" value="jmapplet.class" hidden="true"/>
        <parameter name="height" value="195" hidden="false"/>
        <parameter name="archive" value="javamine.jar" hidden="true"/>
        <parameter name="border" value="0" hidden="false"/>        
        <parameter name="align" value="top" hidden="false"/>                
        <parameter name="rows" value="8" hidden="false"/>        
        <parameter name="marks" value="true" hidden="false"/>        
        <parameter name="mines" value="10" hidden="false"/>        
        <parameter name="graphics" value="true" hidden="false"/>        
        <parameter name="type" value="application/x-java-applet" hidden="false"/>        
        <parameter name="level" value="beginner" hidden="false"/>                
        <parameter name="cols" value="8" hidden="false"/>                
        <media-type ref="html"/>
Resulting applet tag
<applet archive="javamine.jar" border="0" align="top" height="195" width="152" codebase="http://localhost:80/jetspeed/" code="jmapplet.class">
  <param name="level" value="beginner">
  <param name="type" value="application/x-java-applet">
  <param name="cols" value="8">
  <param name="graphics" value="true">
  <param name="marks" value="true">
  <param name="mines" value="10">
  <param name="rows" value="8">