JSTL stands for JSP Standard Tag Library. JSTL is the standard tag library that provides tags to control the JSP page behavior. JSTL tags can be used for iteration and control statements, internationalization, SQL etc.
Keyword | |
---|---|
1 |
fn:endsWith() The fn:endsWith() function determines if an input string ends with a specified suffix. |
2 |
fn:toUpperCase() The fn:toUpperCase() function converts all the characters of a string to uppercase. |
3 |
<c:catch> The <c:catch> tag catches any Throwable that occurs in its body and optionally exposes it. It is used for error handling and to deal more gracefully with the problem. |
4 |
<c:choose> The <c:choose> works like a Java switch statement in that it lets you choose between a number of alternatives. Where the switch statement has case statements, the <c:choose> tag has <c:when> tags. |
5 |
<c:forEach> The <c:forEach> tag is a commonly used tag because it iterates over a collection of objects. |
6 |
<c:forTokens> The <c:forTokens> tag is used to break a string into tokens and iterate through each of the tokens. |
7 |
<c:if> The <c:if> tag evaluates an expression and displays its body content only if the expression evaluates to true. |
8 |
<c:import> The <c:import> tag provides all functionalities of the <include> action but also allows for the inclusion of absolute URLs. |
9 |
<c:otherwise> Just as a switch statement has the default clause to specify a default action, <c:choose> has <c:otherwise> as the default clause. |
10 |
<c:out> The <c:out> tag displays the result of an expression. |
11 |
<c:param> The <c:param> tag allows proper URL request parameter to be specified with URL and also does the necessary URL encoding required. |
12 |
<c:redirect> The <c:redirect> tag redirects the browser to an alternate URL by facilitating automatic URL rewriting, it supports context-relative URLs, and it also supports the <c:param> tag. |
13 |
<c:remove> The <c:remove> tag removes a variable from either a specified scope or the first scope where the variable is found (if no scope is specified). |
14 |
<c:set> The <c:set> tag is JSTL-friendly version of the setProperty action. |
15 |
<c:url> The <c:url> tag formats a URL into a string and stores it into a variable. This tag automatically performs URL rewriting when necessary. |
16 |
<c:when> The <c:choose> works like a Java switch statement in that it lets you choose between a number of alternatives. Where the switch statement has case statements, the <c:choose> tag has <c:when> tags. |
17 |
<fmt:bundle> The <fmt:bundle> tag will make the specified bundle available to all <fmt:message> tags that occur between the bounding <fmt:bundle> and </fmt:bundle> tags. |
18 |
<fmt:formatDate> The <fmt:formatDate> tag is used to format dates in a variety of ways. |
19 |
<fmt:formatNumber> The <fmt:formatNumber> tag is used to format numbers, percentages, and currencies. |
20 |
<fmt:message> The <fmt:message> tag maps key to localized message and performs parametric replacement. |
21 |
<fmt:parseDate> The <fmt:parseDate> tag is used to parse dates. |
22 |
<fmt:parseNumber> The <fmt:parseNumber> tag is used to parse numbers, percentages, and currencies. |
23 |
<fmt:requestEncoding> The <fmt:requestEncoding> tag is used to specify the encoding type used by forms that post data back to the Web application. |
24 |
<fmt:setBundle> The <fmt:setBundle> tag is used to load a resource bundle and stores it in the named scoped variable or the bundle configuration variable. |
25 |
<fmt:setLocale> The <fmt:setLocale> tag is used to store the given locale in the locale configuration variable. |
26 |
<fmt:setTimeZone> The <fmt:setTimeZone> tag is used to copy a time zone object into the specified scoped variable. |
27 |
<fmt:timeZone> The <fmt:timeZone> tag is used to specify the time zone that all tags within its body will use. |
28 |
<sql:dateParam> The <sql:dateParam> tag is used as a nested action for the <sql:query> and the <sql:update> tag to supply a date and time value for a value placeholder. |
29 |
<sql:param> The <sql:param> tag used as a nested action for the <sql:query> tag and the <sql:update> tag to supply a value for a value placeholder. |
30 |
<sql:query> The <sql:query> tag executes an SQL SELECT statement and saves the result in a scoped variable. |
31 |
<sql:setDataSource> The <sql:setDataSource> tag sets the data source configuration variable or saves the data-source information in a scoped variable that can be used as input to the other JSTL database actions. |
32 |
<sql:transaction> The <sql:transaction> tag is used to group the <sql:query> and <sql:update> tags into transactions. You can put as many <sql:query> and <sql:update> tags as statements inside the <sql:transaction> tag to create a single transaction. |
33 |
<sql:update> The <sql:update> tag executes an SQL statement that does not return data; for example, SQL INSERT, UPDATE, or DELETE statements. |
34 |
<x:choose> The <x:choose> tag works like a Java switch statement. With this, you can choose between a number of alternatives. |
35 |
<x:forEach> The <x:forEach> tag is used to loop over nodes in an XML document. |
36 |
<x:if> The <x:if> tag evaluates a test XPath expression and if it is true, it processes its body. If the test condition is false, the body is ignored. |
37 |
<x:otherwise> The <x:choose> tag has the <x:otherwise> tag as the default clause. |
38 |
<x:out> The <x:out> tag displays the result of an XPath expression. It functions the same as <%= %> JSP syntax. |
39 |
<x:param> The <x:param> tag is used along with the transform tag to set a parameter in the XSLT stylesheet |
40 |
<x:parse> The <x:parse> tag is used to parse the XML data specified either via an attribute or in the tag body. |
41 |
<x:set> The <x:set> tag sets a variable to the value of an XPath expression. |
42 |
<x:transform> The <x:transform> tag applies an XSL transformation on an XML document. |
43 |
<x:when> The <x:choose> tag works like a Java switch statement. With this, you can choose between a number of alternatives. Where the switch statement has the case statements, the <x:choose> tag has the <x:when> tags. |
44 |
fn:contains() The fn:contains() function determines whether an input string contains a specified substring. |
45 |
fn:containsIgnoreCase() The fn:containsIgnoreCase() function determines whether an input string contains a specified substring. While doing search it ignores the case. |
46 |
fn:escapeXml() The fn:escapeXml() function escapes characters that can be interpreted as XML markup. |
47 |
fn:indexOf() The fn:indexOf() function returns the index within a string of a specified substring |
48 |
fn:join() The fn:join() function concatenates all the elements of an array into a string with a specified separator. |
49 |
fn:length() The fn:length() function returns the string length or the number of items in a collection. |
50 |
fn:replace() The fn:replace() function replaces all occurrences of a string with another string. |
51 |
fn:split() The fn:split() function splits a string into an array of substrings based on a delimiter string. |
52 |
fn:startsWith() The fn:startsWith() function determines if an input string starts with a specified substring. |
53 |
fn:substring() The fn:substring() function returns a subset of a string specified by start and end indices. |
54 |
fn:substringAfter() The fn:substringAfter() function returns the part of a string after a specified substring. |
55 |
fn:substringBefore() The fn:substringBefore() function returns the part of a string before a specified substring. |
56 |
fn:toLowerCase() The fn:toLowerCase() function converts all the characters of a string to lowercase. |
57 |
fn:trim() The fn:trim() function removes white space from both ends of a string. |