JSTL Library of functions

Source: Internet
Author: User
Tags array contains end functions return string
js| function

Working with instances: <%@ taglib prefix= "FN" uri= "Http://java.sun.com/jsp/jstl/functions"%> ${fn:length (mycollection)}
Other functions:

function

Description

Fn:contains (string, substring)

Returns true if parameter substring is included in the parameter string

Fn:containsignorecase (string, substring)

Returns true if the parameter string contains the parameter substring (ignore case)

Fn:endswith (string, suffix)

Returns true if the argument string ends with the argument suffix

Fn:escapexml (String)

Converts XML (and HTML) with special meaning to the corresponding XML character entity code, and returns

Fn:indexof (string, substring)

Returns the position of the first occurrence of the parameter substring in the parameter string

Fn:join (array, separator)

Strings a given array of arrays with a given spacer separator, forming a new string and returning.

Fn:length (item)

Returns the number of elements contained in the parameter item. The parameter item type is an array, collection, or string. If it is a string type, the return value is the number of characters in string.

Fn:replace (String, before, after)

Returns a String object. Replaces all occurrences of the parameter before string in the parameter string with the argument after string and returns the result of the substitution

Fn:split (string, separator)

Returns an array with the parameter separator as the separator string, and each part of the partition is an element of the array

Fn:startswith (string, prefix)

Returns true if the argument string begins with the argument prefix

Fn:substring (string, begin, end)

Returns the string part of the argument string, starting at the parameter end, including the character

Fn:substringafter (string, substring)

Returns the portion of the string that follows the parameter substring in the parameter string

Fn:substringbefore (string, substring)

Returns the part of the string that precedes the argument substring in the parameter string

Fn:tolowercase (String)

Changes all characters in the parameter string to lowercase and returns them to the

Fn:touppercase (String)

Capitalizes all characters in the parameter string and returns them to the

Fn:trim (String)

Remove the trailing space of the parameter string and return it



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.