A Tag can call its Parent Tag

Both SimpleTag and Tag have a getParent() method. The getParent() in Tag returns a Tag, but the getParent() in SimpleTag returns an instance of JspTag. We’ll see the implications of those return types in a minute.

image with no caption

A nested tag can access its parent (enclosing) tag

image with no caption

Getting the parent tag in a Classic tag handler

image with no caption

Getting the parent tag in a Simple tag handler

image with no caption
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset