For using JSTL (JSP Standard Tag Library) you must include the below code in your jsp page :
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
After including this you can use the JSTL tags in your jsp page with prefix as 'c'.
Using if condition in the jsp :
<c:if test="${variableName=='test'}">
<label>The condition is true</label>
</c:if>
this will show an label on the the jsp page as "The condition is true" if it satisfies the mentioned condition.
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
After including this you can use the JSTL tags in your jsp page with prefix as 'c'.
Using if condition in the jsp :
<c:if test="${variableName=='test'}">
<label>The condition is true</label>
</c:if>
this will show an label on the the jsp page as "The condition is true" if it satisfies the mentioned condition.
Comments
Post a Comment
.