Join the social network of Tech Nerds, increase skill rank, get work, manage projects...

How to put if/else condition in JSTL?

Sometimes we need to show HTML based on some conditions, so for this we use JSTl in JSP file. Example: In the below code I'm changinf heading based on condition. <%@ taglib uri="" prefix="c"%> <h...

How to apply conditional operators in JSTL?

In JSP file sometimes we need to put conditional operators through JSTL. Example: In the below example I am applying && and || operators. <%@ taglib prefix="c" uri="" %> <html> <head&g...

if-else in jstl

In JSTL, the functionality if-else is provided by choose-when-otherwise statement . <c:choose> tag is an enclosing tag for <c:when> and <c:otherwise>. And it is also known as mutual exclusion as only a block of code withi...

Use of JSTL tag

1) Iterate List/HashMap in JSP using JSTL To use JSTL in your jsp file, you should first include below statements <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@taglib prefix="c" uri="ht...
Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: