|
|
fn:trim tag of Function Tag Library
|
Tutorials

Jsp

|
Topic |
What is "fn:trim" tag of Function Tag Library?
|
|
Explanation |
|
"fn:trim" is a function of JSP Standard Tag Library(JSTL). This function is used to remove leading and trailing whitespaces, tabs, linefeed characters from a string.
Syntax:
String:fn:trim(string)
In the above syntax the "string" is of Data type "String".
Example:
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"
prefix="fn" %>
Trimmed string::"${fn:trim(' space')}"
Result
Trimmed string::"space"
In the above example we have removed the tab space characters before the string "space".
|
|
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.
|
|
|
|