Name
<x:out>
Synopsis
The <x:out>
action
adds the evaluation result of an XPath expression to the current
response buffer (JspWriter)
. The evaluation result
is always converted to a String
, following the
coercing rules for the XPath string( )
function.
Syntax
<x:out select="XPathExpression
" [escapeXml="true|false"] />
Attributes
Attribute name |
Java type |
Dynamic value accepted |
Description |
---|---|---|---|
select |
String |
No |
The XPath expression to evaluate. |
escapeXml |
boolean |
Yes |
If |
Example
<x:out select="$doc/meerkat/image/url/text( )" />
Get JavaServer Pages, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.