There are five jsp action elements
The first category is related to the access to JavaBean, including:
<Jsp: useBean> <jsp: setProperty> <jsp: getProperty>
The second type is the basic elements starting with JSP1.2, including 6 action elements.
<Jsp: include> <jsp: forword> <jsp: param> <jsp: plugin> <jsp: params> <jsp: fallback>
The third type is the newly added elements of JSP2.0, which are mainly related to JSP Document, including six elements.
<Jsp: root> <jsp: declaration> <jsp: scriptlet> <jsp: expression> <jsp: text> <jsp: output>
The fourth type is the newly added Action Element of JSP2.0. It is mainly used to dynamically generate the value of the XML Element tag, including three actions.
<Jsp: attribute> <jsp: body> <jsp: element>
The fifth type is the newly added Action Element of JSP2.0. It is mainly used in Tag File and has two elements.
<Jsp: invoke> <jsp: dobody>
1, <jsp: include> Action Element www.2cto.com
Include can contain static files and dynamic files. If it is a static file or a dynamic file, it automatically determines whether it is a static file or a dynamic file.
This method differs from <% @ include file = "file" %> in that both static and dynamic files are loaded according to static files, and jsp code is executed. The former is "first include post-processing", and the latter is "first process and then include ".
2, <jsp: forward>
Forward forwards user requests so that users can jump from one page to another
3, <jsp: param> Action Element
Used to pass parameters. used together with <jsp: include> and <jsp: forward>
<Jsp: include> action element combination <jsp: param> Action Element
<Jsp: forward> action element combination <jsp: param> Action Element
4. <jsp: plugin>, <jsp: params>, and <jsp: fallback> are usually used together.
01
<Jsp: plugin>
02
Type = "bean | applet"
03
Name = "Applet name"
04
Code = "java class name"
05
Codebase = "directory of the java class"
06
Align = "align"
07
Height = "height"
08
Width = "width"
09
Hspace = "Horizontal spacing"
10
Vspace = "Vertical spacing"
11
Archive = "preloaded class list"
12
Jreversion = "JRE version"
13
Ielpuginurl = ""
14
Nspluginurl = ""
15
</Jsp: plugin>
Author
Zhang Dapeng's blog