JSTL Functions

The JSTL functions are mainly used for manipulating strings. Syntax: &lt JSTL functions are given below: JSTL Functions with example. JSTL fn:contains() function with example. JSTL fn:containsIgnoreCase() function with example. JSTL fn:startsWith() function with example. JSTL fn:endsWith() function with example. JSTL fn:escapeXml() function with example. JSTL fn:indexOf() function with example. JSTL fn:join() and fn:split() function … Read more

Categories JSP

JSTL fmt:requestEncoding Formatting Tag

The JSTL <fmt:requestEncoding> Formatting Tag is used to specify the encoding type. Syntax: <fmt: requestEncoding value=”encodingType” /> fmt:requestEncoding tag attributes: Attribute Description Required key It specify the name of character encoding you want to apply when decoding request parameters. Yes Example: test.jsp <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>   <html> <head> … Read more

Categories JSP

JSTL fmt:setTimeZone Formatting Tag

The JSTL <fmt:setTimeZone> Formatting Tag is used to set the specific time zone. Syntax: <fmt:setTimeZone value=”timeZone” /> fmt:setTimeZone tag attributes: Attribute Description Required value It specify the time zone to expose as a scoped or configuration variable. Yes var It specify the name of the variable to store the new time zone. No scope It … Read more

Categories JSP

JSTL fmt:timeZone Formatting Tag

The JSTL <fmt:timeZone> Formatting Tag is used to specify the time zone. Syntax: <fmt:timeZone value=”timeZone” /> fmt:timeZone tag attributes: Attribute Description Required value It specify the time zone to apply to the body. Yes Example: test.jsp <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>   <html> <head> <title>fmt:timeZone JSTL formatting tag example</title> </head> … Read more

Categories JSP

JSTL fmt:setBundle Formatting Tag

The JSTL <fmt:setBundle> Formatting Tag is used to load a resource bundle and set it into the bundle configuration variable. Syntax: <fmt:setBundle basename=”basenameOfResourceBundle” var=”varName” /> fmt:setBundle tag attributes: Attribute Description Required basename It specify the base name of the resource bundle family to expose as a scoped or configuration variable. Yes var It specify the … Read more

Categories JSP

JSTL fmt:setLocale Formatting Tag

The JSTL <fmt:setLocale> Formatting Tag is used for setting the locale configuration variable with the given locale. Syntax: <fmt:setLocale value=”localeValue” /> fmt:setLocale tag attributes: Attribute Description Required value It specify a two-part code that represents the ISO-639 language code and an ISO-3166 country code. Yes variant It specify the browser specific variant. No scope It … Read more

Categories JSP

JSTL fmt:bundle Formatting Tag

The JSTL <fmt:bundle> Formatting Tag is used to make a specified bundle available for all <fmt:message> tags with its body. Syntax: <fmt:bundle basename=”basenameOfBundleResource” /> <fmt:message key=”messageKey”/> </fmt:bundle><fmt:bundle basename=”basenameOfBundleResource” /> <fmt:message key=”messageKey”/> </fmt:bundle> fmt:bundle tag attributes: Attribute Description Required basename It specify the base name of the resource bundle that is to be loaded. Yes prefix … Read more

Categories JSP

JSTL fmt:parseDate Formatting Tag

The JSTL <fmt:parseDate> Formatting Tag is used for parsing the dates. Syntax: <fmt:parseDate value=”val” otherattributes /> fmt:parseDate tag attributes: Attribute Description Required value Date value to read or parse. Yes type DATE, TIME, or BOTH. No dateStyle FULL, LONG, MEDIUM, SHORT, DEFAULT. No timeStyle FULL, LONG, MEDIUM, SHORT, DEFAULT. No parseLocale Locale to use when … Read more

Categories JSP

JSTL fmt:formatDate Formatting Tag

The JSTL <fmt:formatDate> Formatting Tag is used for formatting the dates. Syntax: <fmt:formatDate value=”val” otherattributes> fmt:formatDate tag attributes: Attribute Description Required value It specify the date value to display. Yes type DATE, TIME, or BOTH No dateStyle FULL, LONG, MEDIUM, SHORT, DEFAULT. No timeStyle FULL, LONG, MEDIUM, SHORT, DEFAULT. No pattern It specify the custom … Read more

Categories JSP

JSTL fmt:parseNumber Formatting Tag

The JSTL <fmt:parseNumber> Formatting Tag is used for parsing the numbers, currencies and percentages. Syntax: <fmt:parseNumber value=”val” otherattributes /> fmt:parseNumber tag attributes: Attribute Description Required value Numeric value to read or parse. No type NUMBER, CURRENCY, PERCENT. No parseLocale Locale to use when parsing the number. No integerOnly Whether to parse to an integer (true) … Read more

Categories JSP