Home » JSTL x:if Tag

JSTL XML <x:if> Tag

The <x:if> tag is used for evaluating the test XPath expression. It is a simple conditional tag which is used for evaluating its body if the supplied condition is true.

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

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

Output:

Vegetable Information:

Vegetables prices are very low.

JSTL XML Tags5

You may also like