Javaserver Pages





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
JSP Tutorial
Introduction Introduction
Installing JDK-Windows Installing JDK-Windows
Installing JDK-Linux Installing JDK-Linux
Installing Tomcat Installing Tomcat
Simple Program in JSP Simple Program in JSP
Pre-defined Variables Pre-defined Variables
Syntax of Tags Syntax of Tags
JSP Expression Language JSP Expression Language
JSP EL Operators JSP EL Operators
EL Implicit Variables EL Implicit Variables
Scopes Scopes
Using Arrays Using Arrays
Methods Methods
JSP Elements JSP Elements
Including Beans Including Beans
JSTL Tags JSTL Tags
Custom Tags Custom Tags
Session Session in JSP
Handling Cookies Handling Cookies
JSP Application Structure JSP Application Structure
Configuring web.xml Configuring web.xml
Tomcat Configuration Tomcat Configuration
JSP Examples JSP Examples
Forums Ask Your Doubts
Feedback Feedback
 




Function Tag Library in JSP


Tutorials Jsp

Topic

What is Function Tag Library in JSP?



Explanation

JSTL Function Tag Library lists set of functions that can be used with the JSP Expression Language or EL.

The following table list all the function in JSTL Function Library.

Syntax:
    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" 
    prefix="fn" %>
Functions Syntax Description
fn:contains() Returns true if string contains the substring
fn:containsIgnoreCase() Returns true if string contains the substring,ignores case
fn:endsWith() Returns true if the string ends with a suffix
fn:escapeXml() Returns strings as it is that have special meaning in XML,converted to XML character entity code.
fn:indexOf() Returns index for the first occurence of substring.
fn:join() Returns strings from array with the given seperator.
fn:length() Returns the number of elements from a array or a collection,characters from a string.
fn:replace() Returns a string with the before strings with the after strings.
fn:split() Returns an array with element got by separating the string with the seperator.
fn:startsWith() Returns true if the string starts with the prefix.
fn:substring() Returns a string with begin index till the end index.
fn:substringAfter() Returns the part of the string after the substring.
fn:substringBefore() Returns the part of the string before the substring.
fn:toLowerCase() Returns the allcharacter of a string in lowercase.
fn:toUppercase() Returns the allcharacter of a string in uppercase.
fn:trim() Returns the string removing trailing and leading whitespaces.





A Note
JSP(Java Server Pages) is one of the most used Server Side Programming Language in the world. Simple introduction, basic program codes with examples. Begin coding your own JSP scripts with this online tutorial. Hope you enjoy this tutorial. Do send your feedback or suggestions on this JavaServer Pages tutorial. This is a copyright content.


Other Links

web hosting