Name
<x:otherwise>
Synopsis
The
<x:otherwise>
action represents the default alternative within an
<x:choose>
block. It evaluates its body only
if none of the <x:when>
action in the block
has a test expression that evaluates to true
.
Syntax
<x:otherwise>
JSP elements
</x:otherwise>
Attributes
None.
Example
<x:choose> <x:when select="category[. = 'General']"> <td bgcolor="lightgreen"> </x:when> <x:otherwise> <td> </x:otherwise> </x:choose>
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.