classic tag inside a simple tag
Posted: Sun May 08, 2011 8:51 am
Hi I have one question, it's said in the question that x:outer is a simple tag (since it extends SimpleTagSupport), while the nested tag x:middle is a classic tag (since it extends BodyTagSupport).
Now I don't understand how can the getParent method from the middle tag work, since the method returns a Tag type while the outer tag is of type JspTag. In the HF Book it's said that a Simple Tag can have classic parent while a classic tag can have only a classic parent.
Now I don't understand how can the getParent method from the middle tag work, since the method returns a Tag type while the outer tag is of type JspTag. In the HF Book it's said that a Simple Tag can have classic parent while a classic tag can have only a classic parent.