According to
JSP spec and HFS book, Simple Tags can access either Simple or Classic parent tags but Classic tags can access only Classic Parent tags.
Well consider the below example:
tag1 is a classic tag (extends TagSupport)
tag2 is a simple tag (extends SimpleTagSupport)
tag3 is a classic tag (extends TagSupport)
<my:tag1>
<my:tag2>
<my:tag3/>
</my:tag2>
</my:tag1>
The HFS book (2nd edition, page 560) says that the tag3 handler can call the getParent method twice in order to access the instance of tag1 handler.
I thought that classic tags can only access classic tag parents so how could this work as tag3's parent is a simple tag?
Any advise would be great
Thanks. Ro