previous
|
index
|
next
Tag Body Evaluation
If a tag has a body, it can be (perhaps conditionally) executed by the corresponding tag class code
Here is a JSP with a custom tag that has a body:
BodySimpleTagTest.jsp
Here is the corresponding
TLD element
.
Note the use of
scriptless
instead of
empty
for the
<body-content>
element.
The tag class can "invoke" the tag's body:
BodySimpleTag.java
http://redrock.d.umn.edu:8082/.../BodySimpleTagTest.jsp
More realistic uses of this involve conditional and iterative invocation of the body by the tag class
previous
|
index
|
next