This tag is provided to allow the nested tags to find a common bean
reference without the need for a form and its relative overhead. As
long as the name
attribute of this tag matches the name
of a bean in scope of the JSP (ie: Struts tags can find it via usual
means). For example you can load a bean for use with the
jsp:useBean
tag.
The tag can also be used without specifying the name
attribute, but this is only in the case that the current JSP is a
dynamic include specified in another file. You will not be able to run
the tag without a name unless this inclusion is in place. Otherwise
the nested tags will not have the bean and property references that they
need to provide their logic.
Note: The access to a bean via the name
attribute takes priority over looking for the reference from other
parent tags. So if a name is specified, a bean will have to be there
waiting for it. It was made this way so that you could use separate
beans within a JSP that itself is an inclusion into another.
Attribute Name | Description |
---|---|
name | The name of the bean by which all child nested tags will derive their bean reference from. [RT Expr] |