Javaserver Pages Syntax Page 3

ADVERTISEMENT

J
S
P
™ (JSP™) S
AVA
ERVER
AG ES
YNTAX version 2.0
Directives
Usage
Description
Syntax
JSP
XML
Tag
TS, TX
Similar to the page directive in a
<%@ tag
<jsp:directive.tag tagDirectiveAttrList />
JSP page, but applies to tag files
[ display-name="name of the tag file | display-name" ]
instead of JSP pages. As with the
[ body-content="scriptless|tagdependent|empty" ]
where tagDirectiveAttrList is the same as the list in the JSP
page directive, a translation unit
[ dynamic-attributes="page-scoped attribute" ]
column.
can contain more than one
[ small-icon="relativeURL" ]
instance of the tag directive. All
[ large-icon="relativeURL" ]
the attributes apply to the
[ description="text" ]
complete translation unit.
[ example="text" ]
However, there can be only one
[ language="java" ]
occurrence of any attribute or
[ import="{package.class | package.*} , ... " ]
value defined by this directive in
[ pageEncoding="{characterSet | ISO-8859-1}" ]
a given translation unit. With the
[ isELIgnored="true|false" ]
exception of the import attribute,
%>
multiple attribute or value
(re)definitions result in a
translation error.
Also used for declaring custom
tag properties such as display
name.
Taglib
S, TS
Defines a tag library and prefix
<%@ taglib {uri="URI"
No equivalent. Included in <jsp:root> and in any other XML
for custom tags used in the JSP
| tagdir="/WEB-INF/tags[/subdir]+" } prefix="tagPrefix"
element using the xmlns attribute instead:
page.
%>
<anyxmlelement xmlns:prefix="{uri | urn:jsptld:path |
urn:jsptagdir:/WEB-INF/tags[/subdir]+ }"
>
Examples:
<my:tag xmlns:my=" />
<my:tag xmlns:my="urn:jsptld:/WEB-INF/tlds/my.tld" />
<my:tag xmlns:my="urn:jsptagdir:/WEB-INF/tags" />
Variable
TS, TX
Declares an expression language
<%@ variable
<jsp:directive.variable variableDirectiveAttrList />
{ name-given="scripting variable"
variable exposed by the tag to
the calling page.
| (name-from-attribute="scripting variable"
where variableDirectiveAttrList is the same as the list in the
alias="locally-scoped attribute") }
JSP column.
[ variable-class="java.lang.String | name of the variable class"
]
[ declare="true | false" ]
[ scope="AT_BEGIN | AT_END | NESTED" ]
[ description="text" ]
%>

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 9