META-INF.fn.tld Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wasp Show documentation
Show all versions of wasp Show documentation
Eclipse compatible implementation of Jakarta Server Pages
The newest version!
Tags 3.0 functions library
Tags functions
3.0
fn
jakarta.tags.functions
Tests if an input string contains the specified substring.
contains
org.glassfish.wasp.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.glassfish.wasp.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.glassfish.wasp.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.glassfish.wasp.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.glassfish.wasp.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.glassfish.wasp.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.glassfish.wasp.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.glassfish.wasp.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.glassfish.wasp.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.glassfish.wasp.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.glassfish.wasp.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.glassfish.wasp.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.glassfish.wasp.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.glassfish.wasp.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.glassfish.wasp.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.glassfish.wasp.taglibs.standard.functions.Functions
java.lang.String trim(java.lang.String)
Name: ${fn.trim(name)}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy