August 2002
Intermediate to advanced
688 pages
23h
English
<x:forEach>
The <x:forEach>
action evaluates its body once for each
node in an XPath expression evaluation
result, which sets the context node used by XPath expressions in
nested actions to the current node. The current node can also be
exposed to action elements in the body through a nested variable.
<x:forEach select="XPathExpression" [var="var"]>JSP elements</x:forEach>
|
Attributename |
Java type |
Dynamic valueaccepted |
Description |
|---|---|---|---|
select |
String |
No |
The XPath expression |
var |
String |
No |
The name of the nested variable holding the current element |
<x:forEach select="$doc//story"> <x:out select="title/text( )" /> </x:forEach>
Read now
Unlock full access