JSP Tutorials - Herong's Tutorial Examples - v5.11, by Herong Yang
c:if Action Tag
This section describes the c:if action tag in the JSTL Core library. c:if allows you to specify a section of JSP code to be processed only if a specified condition is true.
The <c:if> action tag allows you to specify a section of JSP code to be processed only if a specified condition is true in JSP pages using this syntax:
<c:if test="condition" var="name" scope="level"> body </c:if>
Note that:
Table of Contents
JSP (JavaServer Pages) Overview
Tomcat Installation on Windows Systems
Syntax of JSP Pages and JSP Documents
JavaBean Objects and "useBean" Action Elements
Managing HTTP Response Header Lines
Non-ASCII Characters Support in JSP Pages
Overview of JSTL (JSP Standard Tag Libraries)
c:out Action Tag with EL Expressions
Example - Dumping EL Implicit Objects
Example - Calculating Prime Numbers
Multiple Tags Working Together
Using Tomcat on CentOS Systems
Connecting to SQL Server from Servlet