Javatpoint Logo
Javatpoint Logo

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




Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA