Name

<jsp:fallback>

Synopsis

The <jsp:fallback> action can only be used in the body of a <jsp:plugin> action. Its body specifies the template text to use for browsers that don’t support the HTML <embed> or <object> elements.

Syntax

<jsp:fallback>
  Fallback body
</jsp:fallback>

Attributes

None.

Example

<jsp:plugin type="applet" code="Clock2.class" 
  codebase="applet" 
  jreversion="1.2" width="160" height="150" >
  <jsp:fallback>
    Plugin tag OBJECT or EMBED not supported by browser.
  </jsp:fallback>
</jsp:plugin>

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.