previous
|
index
|
next
Static Tag Attributes
Static tag attributes are used to pass information from a JSP to a custom tag
Example: here is a tag element
date
that has an attribute called
format
:
<tag> element with attribute
The attribute name must match a private field and setter method in the tag class
Here is a tag class with a
format
field and a
setFormat()
method:
FormatDateTag.java
This JSP uses the
date
tag and the
format
attribute:
FormatDateTagTest.jsp
Note that use of the
format
attribute causes the
setFormat()
method to be called
http://redrock.d.umn.edu:8082/.../FormatDateTagTest.jsp
previous
|
index
|
next