August 2002
Intermediate to advanced
688 pages
23h
English
<c:if>
The <c:if>
action
evaluates its body only if the
specified expression evaluates to
true. Alternatively, the evaluation result can be
saved as a scoped Boolean variable.
<c:if test="booleanExpression" var="var" [scope="page|request|session|application"]/>
<c:if test="booleanExpression">JSP elements</c:if>
|
Attribute name |
Java type |
Dynamic value accepted |
Description |
|---|---|---|---|
test |
boolean |
Yes |
The test expression |
var |
String |
No |
The variable name |
scope |
String |
No |
The variable scope |
<c:if test=${empty param.empDate}">
<jsp:forward page="input.jsp">
<jsp:param name="msg" value="Missing the Employment Date" />
</jsp:forward>
</c:if>Read now
Unlock full access