Jsp action elements

Source: Internet
Author: User

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

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.