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: