Home » JSTL Core c:if Tag

JSTL Core c:if Tag

by Online Tutorials Library

JSTL Core <c:if> Tag

The < c:if > tag is used for testing the condition and it display the body content, if the expression evaluated is true.

It is a simple conditional tag which is used for evaluating the body content, if the supplied condition is true.

Let’s see the simple example of c:if tag:

Output:

JSTL Core Tags5

You may also like