User Tools

Site Tools


choose Tag

The choose tag provides case-style conditional logic. The choose tag will have nested some number of when tags and possibly an otherwise tag. The first when tag to test true will be resolved to become the processing result of the entire choose tag. If no when tag tests true and an otherwise tag is present, the otherwise tag is resolved to produce the result of the entire choose tag.

Attribute Kind Required Purpose
select string no An XPath expression. If specified, nested when tags will be evaluated by comparing their test attribute with the value of this resolved XPath expression. If this attribute is omitted, when tags are tested by evaluating their respective test attributes as boolean values.

Full Form

<c:choose select=“” >

Usage and Samples

Return to index

org.gramar.base/tag.choose.txt · Last modified: 2016/06/27 20:35 (external edit)