Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com
Here, we use another tag, with two attributes.
Its description in the .tld .
The first attribute...
and the second, both not required.
The pobox attribute has a corresponding String data member and get/set-methods that go with it in the handler class.
This is how we deal with the attribute, in the doStartTag method.
The color attribute
has its own variable and methods.
If the attribute's value constitutes a valid hexadecimal string, that is , no exception occurs, so there's no jump to the catch,
it is copied to the variable and
handled in this manner in doStartTag.
And in doEndTag.
Because we want the color attribute value validated as a hexadecimal string, we prefix 0x, so this is what will be evaluated :