Home » JSTL x:set Tag

JSTL XML <x:set> Tag

The <x:set> tag is used to set a variable with the value of an XPath expression. It is used to store the result of xml path expression in a scoped variable.

The syntax used for including the <x:set> tag is:

Let’s see the simple example to understand the xml <x:set > tag is:

Output:

Books Information:

The price of the Tomorrow land book: 2000

JSTL XML Tags3

You may also like