<jsp:plugin>

The <jsp:plugin> action generates HTML <embed> or <object> elements (depending on the browser type) that result in the download of the Java Plug-in 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 that will be shown in browsers that do not support the <embed> or <object> HTML elements. For more information about the Java Plug-in, see http://java.sun.com/products/plugin/.

The <jsp:plugin> action supports the attributes described in Table 1-8.

Table 1-8. Attributes for <jsp:plugin>

Name

Java type

Request-time value accepted

Description

align

String

no

Optional. The alignment of the applet area, one of bottom, middle, or top.

archive

String

no

Optional. 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

Mandatory. The fully qualified class name for the object.

codebase

String

no

Mandatory. The relative URL for the directory that contains the class file. According to the HTML 4.0 specification, the directory must be a subdirectory of the directory containing the page.

height

String

no

Optional. The ...

Get JavaServer Pages Pocket Reference 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.