background image

More on JSTL

<< JSTL Functions | Custom Tags in JSP Pages >>
<< JSTL Functions | Custom Tags in JSP Pages >>

More on JSTL

</form>
<c:if test=
"${fn:length(param.username) > 0}" >
<%@include file=
"response.jsp" %>
</c:if>
</body>
</html>
The rest of the JSTL functions are concerned with string manipulation:
toUpperCase
, toLowerCase: Changes the capitalization of a string
substring
, substringBefore, substringAfter: Gets a subset of a string
trim
: Trims white space from a string
replace
: Replaces characters in a string
indexOf
, startsWith, endsWith, contains, containsIgnoreCase: Checks whether a string
contains another string
split
: Splits a string into an array
join
: Joins a collection into a string
escapeXml
: Escapes XML characters in a string
Further Information about JSTL
For more information on JSTL, see:
The tag reference documentation:
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html
The API reference documentation:
http://java.sun.com/products/jsp/jstl/1.1/docs/api/index.html
The JSTL 1.1 specification:
http://java.sun.com/products/jsp/jstl/downloads/index.html#specs
The JSTL web site:
http://java.sun.com/products/jsp/jstl
Further Information about JSTL
Chapter 7 · JavaServer Pages Standard Tag Library
223