Struts Framework
Welcome
Home
Kickstart FAQ
User Guide
Resources
Who We Are
Downloads
Binaries
Source Code
Getting Started
Installation
Release Notes
Javadoc
Mailing Lists
Bug Database
Developer Guides
Bean Tags
HTML Tags
Logic Tags
Template Tags
Digester
Utilities
TagLib Documentation
Bean Tags
HTML Tags
Logic Tags
Template Tags
Current Development
Installation (nightly)
Release Notes (nightly)
Javadoc (nightly)
Workflow Proposal
TODO List
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 NameDescription
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.
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 NameDescription
template A string representing the URI of a template (a JSP page). [Required] [RT Expr]
put - Puts content into request scope.
Put content into request scope.
Attribute NameDescription
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]
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]
get - Gets the content from request scope that was put there by a put tag.
Retrieve content from request scope and include it.
Attribute NameDescription
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]

Copyright (c) 2000-2002, Apache Software Foundation