Javaserver Pages Syntax Page 6

ADVERTISEMENT

Standard Elements
Usage
Description
Syntax
JSP
XML
<jsp:doBody>
T
Evaluates the body of the tag
<jsp:doBody ({var="scopedAttributeName" |
Same as JSP syntax.
used by the calling page to
varReader="scopedAttributeName" }
invoke this tag file.
[scope="page | request | session | application" ] />) | />
Forwards a request to a web
<jsp:forward page="{relativeURL | '${' Expression'}' |
<jsp:forward page="{relativeURL | '${' Expression'}' |
<jsp:forward>
A
resource.
<%= expression %> }"
<%= expression %> }"
{ /> | > [ <jsp:param name="parameterName"
{ /> | > [ <jsp:param name="parameterName"
value="{parameterValue | '${' Expression '}' |
value="{parameterValue | '${' Expression '}' |
<%= expression %>}" } /> ] +
%= expression %}" } /> ] +
</jsp:forward> }
</jsp:forward> }
Inserts the value of a bean
<jsp:getProperty name="beanInstanceName"
Same as JSP syntax.
<jsp:getProperty>
A
property into the result.
property="propertyName" />
<jsp:include>
A
Includes a static file or the
<jsp:include page="{relativeURL | '${' Expression '}' |
<jsp:include page="{relativeURL | '${' Expression '}' |
result from another web
<%= expression %>}"
%= expression %}"
component.
[ flush="true | false" ]
[ flush="true | false" ]
{ /> | > [ <jsp:param name="parameterName"
{ /> | > [ <jsp:param name="parameterName"
value="{parameterValue | '${' Expression '}' |
value="{parameterValue |'${' Expression '}' |
<%= expression %>}" /> ] +
%= expression %}" /> ] +
<jsp:invoke>
TS,
Evaluates a fragment attribute.
<jsp:invoke fragment="fragmentName"
Same as JSP syntax.
TX
({var="scopedAttributeName" |
varReader="scopedAttributeName"}
[scope="page | request | session | application" ] />) | />
<jsp:output>
X, TX
Specifies the XML declaration
No equivalent.
<jsp:output ( omit-xml-declaration="yes|no|true|false" )
or the document type
{ doctypeDecl } />
declaration in the request
doctypeDecl ::= ( doctype-root-element="rootElement"
output of a JSP document or a
doctype-public="PubidLiteral"
tag file that is in XML syntax.
doctype-system="SystemLiteral" )
| ( doctype-root-element="rootElement"
doctype-system="SystemLiteral" )

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 9