Name

<jsp:plugin>

Synopsis

The <jsp:plugin> action generates HTML <embed> or <object> elements (depending on the browser type) that result in the download of the Java Plugin software (if required) and subsequent execution of the specified Java applet or JavaBeans component. The body of the action can contain a <jsp:params> element to specify applet parameters and a <jsp:fallback> element to specify the text shown in browsers that don’t support the <embed> or <object> HTML elements. For more information about the Java Plugin, see http://java.sun.com/products/plugin/.

Syntax

<jsp:plugin [align="bottom|middle|top"] [archive="archiveList"]
  code="className" codeBase="relativePath" [height="height"]
  [hspace="horizontalSpace"] [iepluginurl="pluginURL"]
  [jreversion="jreVersion"] [name="appletName"] 
  [nspluginurl="pluginURL"] [title="title"] type="applet|bean"
  [vspace="verticalSpace"] [width="width"] >
  Optionally one <jsp:param> and one <jsp:fallback> action
</jsp:plugin>

Attributes

Attribute name

Java type

Dynamic value accepted

Description

align
String

No

Alignment of the applet area. One of bottom, middle, or top.

archive
String

No

A comma-separated list of URIs for archives containing classes and other resources that will be preloaded. The classes are loaded using an instance of an AppletClassLoader with the given codebase. Relative URIs for archives are interpreted with respect to the applet’s codebase.

code
String

No

The fully qualified class name for the applet.

codebase ...

Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.