JSTL Archive

JSTL Parse Number Example <fmt:parseNumber>

JSTL Parse Number tag is used to parse the numbers, percentage or currency. JSTL Parse Number Example: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <html> <head> <title>JSTL Parse Number Example</title> </head> <body> …

JSTL formatNumber Tag <fmt:formatNumber>

JSTL formatNumber tag is used to change the format of numbers or currency. JSTL formatNumber Example: To display the numbers on JSP in proper format, you can use the <fmt:formatNumber> tag like this: <%@ taglib …

JSTL Redirect Tag <c:redirect>

JSTL Redirect tag is used to redirect the request to another resource. The <c:redirect> tag redirects the browser to an alternate URL by providing automatically URL rewriting, it supports context-relative URLs, and it supports the …

JSTL url Tag <c:url>

JSTL URL tag is used to format and save url in a variable to use it at later stage. The <c:url> tag formats a URL into a string and stores it into a variable. This …

JSTL param Tag <c:param>

JSTL Param Tag is used to pass the parameters to the url. The <c:param> tag allows proper URL request parameter to be specified with URL and it does any necessary URL encoding required. Within a …

JSTL forTokens Tag <forTokens>

JSTL forTokens tag is used to iterate over the tokens separated by delimiters. JSTL forTokens tag is another tag in core JSTL library to support Iteration or looping. It effectively complements, more useful <c:forEach> tag, …