The JSTL Core Tag is used in control flow. It evaluates an expression and execute a specific block of code is result returns true.
Syntax:
c:if tag attributes:
Attribute | Description | Required |
test | It specify the condition to evaluate. | Yes |
var | It specify the name of the variable to store the condition’s result. | No |
scope | It specify the scope of the variable to store the condition’s result. | No |
Example:
test.jsp
web.xml
No comments:
Post a Comment