Featured
-
How to split a String
Below I have written a code to split a string.
by shahbaz.ahmmod -
Send Push Notification with Custom Data to iPhone device from Java Server Side
This blog will help you to send Push Notifications
by babita.dhami -
Tomcat and Eclipse Integration Error : “Unknown version of Tomcat was specified”
If you are adding Server in Eclipse for Tomcat, an
by chandan.ahluwalia -
Spring MVC and MongoDB
Repository Class Using MongoDB : Spring has th
by sumit.vyas -
How to create DLL file from java?
Hello Guy's This Blog will guide how to create D
by bhagwan.khichar
Tags
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="http://java.sun.com/jsp/jstl/core" 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="http://java.sun.com/jstl/core" %>
<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...