META-INF.fn.tld Maven / Gradle / Ivy
JSTL 1.1 functions library
JSTL functions
1.1
fn
http://java.sun.com/jsp/jstl/functions
Tests if an input string contains the specified substring.
contains
org.apache.taglibs.standard.functions.Functions
boolean contains(java.lang.String, java.lang.String)
<c:if test="${fn:contains(name, searchString)}">
Tests if an input string contains the specified substring in a case insensitive way.
containsIgnoreCase
org.apache.taglibs.standard.functions.Functions
boolean containsIgnoreCase(java.lang.String, java.lang.String)
<c:if test="${fn:containsIgnoreCase(name, searchString)}">
Tests if an input string ends with the specified suffix.
endsWith
org.apache.taglibs.standard.functions.Functions
boolean endsWith(java.lang.String, java.lang.String)
<c:if test="${fn:endsWith(filename, ".txt")}">
Escapes characters that could be interpreted as XML markup.
escapeXml
org.apache.taglibs.standard.functions.Functions
java.lang.String escapeXml(java.lang.String)
${fn:escapeXml(param:info)}
Returns the index withing a string of the first occurrence of a specified substring.
indexOf
org.apache.taglibs.standard.functions.Functions
int indexOf(java.lang.String, java.lang.String)
${fn:indexOf(name, "-")}
Joins all elements of an array into a string.
join
org.apache.taglibs.standard.functions.Functions
java.lang.String join(java.lang.String[], java.lang.String)
${fn:join(array, ";")}
Returns the number of items in a collection, or the number of characters in a string.
length
org.apache.taglibs.standard.functions.Functions
int length(java.lang.Object)
You have ${fn:length(shoppingCart.products)} in your shopping cart.
Returns a string resulting from replacing in an input string all occurrences
of a "before" string into an "after" substring.
replace
org.apache.taglibs.standard.functions.Functions
java.lang.String replace(java.lang.String, java.lang.String, java.lang.String)
${fn:replace(text, "-", "")}
Splits a string into an array of substrings.
split
org.apache.taglibs.standard.functions.Functions
java.lang.String[] split(java.lang.String, java.lang.String)
${fn:split(customerNames, ";")}
Tests if an input string starts with the specified prefix.
startsWith
org.apache.taglibs.standard.functions.Functions
boolean startsWith(java.lang.String, java.lang.String)
<c:if test="${fn:startsWith(product.id, "100-")}">
Returns a subset of a string.
substring
org.apache.taglibs.standard.functions.Functions
java.lang.String substring(java.lang.String, int, int)
P.O. Box: ${fn:substring(zip, 6, -1)}
Returns a subset of a string following a specific substring.
substringAfter
org.apache.taglibs.standard.functions.Functions
java.lang.String substringAfter(java.lang.String, java.lang.String)
P.O. Box: ${fn:substringAfter(zip, "-")}
Returns a subset of a string before a specific substring.
substringBefore
org.apache.taglibs.standard.functions.Functions
java.lang.String substringBefore(java.lang.String, java.lang.String)
Zip (without P.O. Box): ${fn:substringBefore(zip, "-")}
Converts all of the characters of a string to lower case.
toLowerCase
org.apache.taglibs.standard.functions.Functions
java.lang.String toLowerCase(java.lang.String)
Product name: ${fn.toLowerCase(product.name)}
Converts all of the characters of a string to upper case.
toUpperCase
org.apache.taglibs.standard.functions.Functions
java.lang.String toUpperCase(java.lang.String)
Product name: ${fn.UpperCase(product.name)}
Removes white spaces from both ends of a string.
trim
org.apache.taglibs.standard.functions.Functions
java.lang.String trim(java.lang.String)
Name: ${fn.trim(name)}