Getting Started
|
Template Tags |
This tag library contains three tags: put, get, and insert. Put tags
put content into request scope, which is retrieved by a get tag in
a different JSP page (the template). That template is included with the
insert tag.
| Tag Name | Description |
---|
get |
Gets the content from request scope that was put there by a
put tag.
| insert |
Inserts (includes, actually) a template. Templates are JSP pages that
include parameterized content. That content comes from put tags that
are children of insert tags.
| put |
Puts content into request scope.
|
|
get -
Gets the content from request scope that was put there by a
put tag.
|
Retrieve content from request scope and include it.
| Attribute Name | Description |
---|
flush |
If set to true , flush the response buffer prior to
including the content specified by the name attribute.
By default, the response is not flushed. NOTE -
this attribute exists only to work around problems on some containers;
flushing should never be required.
(RT EXPR)
| name |
The name of the content to get from request scope.
(REQUIRED)
(RT EXPR)
| role |
If the user is in the specified role, the content is retrieved,
otherwise, the content is ignored.
(RT EXPR)
|
|
Back to top insert -
Inserts (includes, actually) a template. Templates are JSP pages that
include parameterized content. That content comes from put tags that
are children of insert tags.
|
This tag's enclosed put tags put content (URIs or text) into request
scope. That content is retrieved by get tags in a template (templates
are JSP pages). That template is included by this tag's end tag.
| Attribute Name | Description |
---|
template |
A string representing the URI of a template (a JSP page).
(REQUIRED)
(RT EXPR)
|
|
Back to top put -
Puts content into request scope.
|
Put content into request scope.
Content can come from attribute content="aContent", or from tag body. In this later case,
attribute direct is automatically set to "true".
| Attribute Name | Description |
---|
content |
Content that's put into request scope.
(RT EXPR)
| direct |
Determines how content is handled: true means content is
printed directly; false, the default, means content
is included.
(RT EXPR)
| name |
The name of the content.
(REQUIRED)
(RT EXPR)
| role |
If the user is in the specified role, the content is stored for
subsequent access by the get tag; otherwise, the content is ignored.
(RT EXPR)
|
|
Back to top
|