JSTLC tag Library

Source: Internet
Author: User
1. choose is used to control nesting and action processing. DEMO code: 2. The forEach action calculates a fixed number of times for the body repeatedly, or calculates the body for each element in a set. DEMO code:

1. choose

Used to control nesting And Action processing.

DEMO code:

...

....

2. forEach

The action calculates a fixed number of times for the body, or calculates the body for each element in a set.

DEMO code:



3. forTokens

A tag can be used to separate a specified string based on a separator, which is equivalent to the java. util. StringTokenizer class.

DEMO code:


$ {Item}

4. if

The body of an action is calculated only when the specified expression is calculated as true.

DEMO code:

.....

5. import

The tag allows another JSP page to be included on this page.

DEMO code:

6. out

A tag is the most common label used to display data in JSP. It is used to replace the value of the output object through the out or <% = %> tag of the JSP internal object.
DEMO code:

7. param

It is used to pass parameters for pages that contain or redirect.
DEMO code:

8. redirect

Client requests can be directed from a JSP webpage to other files.
DEMO code:



9. remove

Tags are used to delete variables that exist in the scope.

Similar

<% Session. removeAttribute ("name") %>,
<% Request. removeAttribute ("name") %>...
DEMO code:

10. set

The tag is used to assign values to the attributes of variables or JavaBean variables. This label is used to set a specific value in a certain range (page, request, session, application, etc.) or to set the attributes of an existing javabean object. It is similar to <% request. setAttrbute ("name", "value"); %>

DEMO code:

11. when

A tag is equivalent to an "if" statement. It contains a test attribute, which indicates the conditions to be judged.

DEMO code:

Condition1 is true

12. url

It is mainly used to generate a URL.
DEMO code:

Related Article

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.