Saturday, December 02, 2006

JSTL <c:when> Tag

Tests for when an expression is set.
Taglib
: http://java.sun.com/jsp/jstl/core (Core)
Prefix: c
Attributes:
test | String = expression that evaluates to true or false.
Example:
<c:when test="${param.gender eq 'f'}>
// Things to do when parameter gender is 'f' ...
</c:when>