JSP built-in functions

Source: Internet
Author: User

Function Description:

  • Fn:contains (string, substring)--Returns True if the argument string contains a parameter substring

  • Fn:containsignorecase (string, substring)--Returns True if the argument string contains a parameter substring (ignoring 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 into 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)--a given array array is separator together with the given spacer, forming a new string and returning it.

  • Fn:length (item)--Returns the number of elements contained in the parameter item. The parameter item type is an array, a collection, or a string. If it is of type string, the return value is the number of characters in string.

  • Fn:replace (String, before, after)--Returns a String object. Replaces all occurrences of a parameter before string in a parameter string with a parameter after string, and returns the replaced result

  • Fn:split (String, separator)--Returns an array that splits the argument string with the parameter separator, and each part of the split is an element of the array

  • Fn:startswith (string, prefix)--Returns True if the argument string starts with the argument prefix

  • Fn:substring (string, begin, end)--Returns the argument string part string, starting with the argument begin to the argument end position, including the character of the end position

  • Fn:substringafter (string, substring)--Returns the part of the argument substring the string following the argument string

  • Fn:substringbefore (string, substring)--Returns the part of the string that precedes the argument substring in the argument string

  • Fn:tolowercase (String)--converts all characters of the argument string to lowercase and returns it

  • Fn:touppercase (String)--converts all characters of the argument string to uppercase and returns it

  • Fn:trim (String)--strips the trailing and trailing spaces of a parameter string and returns it

JSP built-in functions

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.