Output Comment
生成客户端可以看得见(在HTML源代码中存在)的注释信息。
<!- - comment [ <%= expression %>
] -->

Hidden Comment
为JSP脚本添加的注释信息,不会被输出到最终HTML页面中。
<%- - comment --%>

Declaration
声明JSP教本中的变量或函数。
<%! declarations %>

Expression
输出表达式的结果。
<%= expression %>

Scriptlet
包含了可执行的Java程序片断。
<% code fragment %>

Include Directive
引用另外一个文本文件的内容或者另外一个JSP页面的程序。
<%@ include file=" relativeURL "%>

Page Directive
定义一些JSP页面的属性值
<%@ page
[ language=" java " ] [ extends=" package. class "
] [ import= " { package. class | package .* } , ... " ]
[ session=" true |false" ] [ buffer=" none| 8kb | size
kb" ] [ autoFlush=" true |false" ]
[ isThreadSafe=" true |false" ] [ info=" text "
] [ errorPage=" relativeURL "]
[ contentType=" mimeType [ ; charset =characterSet ]"|"
text/ html ; charset= ISO- 8859- 1 "]
[ isErrorPage=" true| false "]
%>

Taglib Directive
定义JSP页面中额外定制的Tag信息(包括Tag
Library和定制的Tag的前缀)
<%@ taglib uri=" URIToTagLibrary "
prefix=" tagPrefix "%>
custom tag:
< tagPrefix
: name
attribute =" value
"+ ... />
< tagPrefix
: name
attribute =" value
"+ ... > other
tags </ tagPrefix
: name
>

<jsp:forward>
将页面请求转发给另外一个URL的页面(可以是HTML,JSP或者Servlet)。
<jsp: forward page="{ relativeURL | <%=
expression %> }" />

<jsp:getProperty>
取得一个Bean的属性信息。
<jsp: getProperty name=" beanInstanceName
" property=" propertyName "/>

<jsp:include>
讲另外一个文件的内容包含进来,和前面<@include...>不同的是,<jsp:include并不会执行被包含文件中的内容,只是简单的包含数据。
<jsp: include page="{ relativeURL
| <%= expression %> }" flush=" true" />

<jsp:plugin>
将一个Applet或者Java
Bean下载到客户端执行。
<jsp: plugin type=" bean| applet"
code=" classFileName " codebase=" classFileDirectoryName
"
[ name=" instanceName " ] [ archive=" URIToArchive, ...
" ] [ align=" bottom |top| middle| left| right" ]
[ height=" displayPixels " ] [ width=" displayPixels "
] [ hspace=" leftRightPixels " ] [ vspace=" topBottomPixels
"]
[ jreversion=" JREVersionNumber | 1.1 " ] [
nspluginurl=" URLToPlugin " ] [ iepluginurl=" URLToPlugin
"] >
[ <jsp: params> [ <jsp: param name=" parameterName "
value=" parameterValue " /> ]+ </ jsp: params> ]
[ <jsp: fallback> text message for user </ jsp: fallback> ]
</ jsp: plugin>

<jsp:setProperty>
给一个Java Bean设置属性。
<jsp: setProperty name=" beanInstanceName
"
{ property= "*"| property=" propertyName " [
param=" parameterName "]|
property=" propertyName " value=" { string | <%=
expression %>}"}/>

<jsp:useBean>
以给定的scope那,指定使用一个Java
Bean。
<jsp: useBean id=" beanInstanceName "
scope=" page |request| session| application"
{ class=" package. class " | type=" package. class "
| class=" package. class " type=" package. class "|
beanName=" { package. class | <%= expression %> }
" type=" package. class "}
{/>| > other tags </ jsp: useBean> }
