Name
<x:otherwise>
Synopsis
The <x:otherwise>
action represents default alternative within a
<x:choose>
block. It evaluates its body only
if none of the <x:when>
actions 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, Second 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.