JSTL functions


Standard Syntax:
     <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

XML Syntax:
     <anyxmlelement xmlns:fn="http://java.sun.com/jsp/jstl/functions" />

JSTL 1.2 functions library

Tag Library Information
Display NameJSTL functions
Version1.2
Short Namefn
URIhttp://java.sun.com/jsp/jstl/functions
 

Function Summary
booleancontains( java.lang.String, java.lang.String)Tests if an input string contains the specified substring.
booleancontainsIgnoreCase( java.lang.String, java.lang.String)Tests if an input string contains the specified substring in a case insensitive way.
booleanendsWith( java.lang.String, java.lang.String)Tests if an input string ends with the specified suffix.
java.lang.StringescapeXml( java.lang.String)Escapes characters that could be interpreted as XML markup.
intindexOf( java.lang.String, java.lang.String)Returns the index withing a string of the first occurrence of a specified substring.
java.lang.Stringjoin( java.lang.String[], java.lang.String)Joins all elements of an array into a string.
intlength( java.lang.Object)Returns the number of items in a collection, or the number of characters in a string.
java.lang.Stringreplace( java.lang.String, java.lang.String, java.lang.String)Returns a string resulting from replacing in an input string all occurrences of a "before" string into an "after" substring.
java.lang.String[]split( java.lang.String, java.lang.String)Splits a string into an array of substrings.
booleanstartsWith( java.lang.String, java.lang.String)Tests if an input string starts with the specified prefix.
java.lang.Stringsubstring( java.lang.String, int, int)Returns a subset of a string.
java.lang.StringsubstringAfter( java.lang.String, java.lang.String)Returns a subset of a string following a specific substring.
java.lang.StringsubstringBefore( java.lang.String, java.lang.String)Returns a subset of a string before a specific substring.
java.lang.StringtoLowerCase( java.lang.String)Converts all of the characters of a string to lower case.
java.lang.StringtoUpperCase( java.lang.String)Converts all of the characters of a string to upper case.
java.lang.Stringtrim( java.lang.String)Removes white spaces from both ends of a string.
 


Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-3 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.