-
Notifications
You must be signed in to change notification settings - Fork 1
Extension org.gramar.base Tag choose
chrisgerken edited this page Sep 14, 2015
·
2 revisions
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.
- string select - 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.
Place a taglib
element within <taglibs>
element in the gramar.config file in the root of your gramar:
<taglibs>
<taglib prefix="c" extension="org.gramar.base" />
</taglibs>
Return to org.gramar.base