Skip to content

Extension org.gramar.base Tag when

chrisgerken edited this page Sep 14, 2015 · 2 revisions

when Tag

The when tag acts as a single case clause for a containing choose tag. Within a choose tag's scope, the first when tag to test true will become the processing result of the entire choose tag.

  • string test - (required) An XPath expression. If the select attribute of the containing choose tag is specified, this expression value is compared to the value of that select expression. Otherwise, this XPath expression is evaluated as a boolean..

Usage and examples

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

Clone this wiki locally