jsp:plugin |

The jsp:plugin action is used to generate client browser specific HTML tags (OBJECT or EMBED) that ensures that the Java Plug-in software is available, followed by execution of the applet or JavaBean component specified in the tag.

The jsp:plugin tag can have two optional additional support tags:

- <jsp:param> elements, to pass additional parameters to the Applet or JavaBean component.
- A <jsp:fallback> element, to specify the content to be displayed in the client browser if the plugin cannot be started because the generated tags are not supported. The <jsp:fallback> tag does the same thing as the HTML "ALT" or "NOFRAMES" attributes.

        <jsp:plugin type="bean|applet" code="objectCode" codebase="objectCodebase"
                 align="alignment" archive="archiveList" height ="height" hspace="hspace"
                 jreversion="jreversion"  name="componentName"  vspace="vspace"
                 width="width"  nspluginurl="url"  iepluginurl="url" >
            <jsp:params>
                <jsp:param name="paramName" value=" paramValue" />
                <jsp:param name=" paramName" value=" paramValue" />
                ...
            </jsp:params>
            <jsp:fallback> Alternate text to display </jsp:fallback>
        </jsp:plugin>

Example

        <jsp:plugin type="applet" code="projsp.TestApplet" codebase="/classes/applets"
        height="100" width="100">
              <jsp:params>
              <jsp:param name="color" value="black"/>
              <jsp:param name="speed" value="fast"/>
              <jsp:param name="sound" value="off"/>
              </jsp:params>
           <jsp:fallback>Your browser cannot display this applet text </jsp:fallback>
        </jsp:plugin>

type |
Required: Yes |
Identifies the type of the component; a Bean, or an Applet.

code |
Required: Yes |
Same as HTML syntax

codebase |
Required: No |
Same as HTML syntax

align |
Required: No |
Same as HTML syntax

archive |
Required: No |
Same as HTML syntax

height |
Required: No, but some browsers do not allow an object of zero height due to security issues |
Same as HTML syntax

hspace |
Required: No |
Same as HTML syntax

jreversion |
Required: No |
The Java runtime environment version needed to execute this object. The default is "1.1".

name |
Required: No |
Same as HTML syntax

vspace |
Required: No |
Same as HTML syntax

title |
Required: No |
Same as HTML syntax

width |
Required: No, but some browsers do not allow an object of zero width due to security issues. |
Same as HTML syntax

nspluginurl |
Required: Only if the Java Plugin software needs to be installed on the client. |
URL where JRE plugin can be downloaded for Netscape Navigator, default is implementation defined.

iepluginurl |
Required: Only if the Java Plugin software needs to be installed on the client. |
URL where JRE plugin can be downloaded for Internet Explorer, default is implementation defined.