August 2002
Intermediate to advanced
688 pages
23h
English
<x:if>
The <x:if>
action
evaluates its body only if the specified XPath expression evaluates
to true. Alternatively, the evaluation result can
be saved as a scoped Boolean variable.
<x:if select="booleanXPathExpression" var="var" [scope="page|request|session|application"]/>
<x:if select="booleanXPathExpression">JSP elements</x:if>
|
Attribute name |
Java type |
Dynamic value accepted |
Description |
|---|---|---|---|
select |
String |
No |
The XPath expression to evaluate. |
var |
String |
No |
The variable name. The type is |
scope |
String |
No |
The variable scope. |
<x:if select="category[. = 'General']"> <b>General</b> </x:if>
Read now
Unlock full access