It is mentioned in the jstl 1.1 specification that <c:if> can be an empty tag that carries no body content. But I wonder why do we need an empty <c:if>? Just in order to store a boolean result in a scoped variable?
Henry Zheng<br /> <br />I went numb when I learned to see.
Vijay S. Rathore
posted 12 years ago
That's the place where scope comes into picture. If your declare an c:if without a body you have to give at least 'var' and 'scope. And then you can use this 'var' anywhere in the defined scope.
SCJP, SCJD, SCWCD1.4, IBM486, IBM484, IBM 483, IBM 287, IBM141, IBM Certified Enterprise Developer - WebSphere Studio, V5.0
Author of IBM 287 Simulator Exam