The sl:shoppingList and sl:item tags output a shopping list to the response and are used as follows:
The tag handler for sl:shoppingList is ShoppingListTag and the tag handler for sl:item is
ItemSimpleTag.ShoppingListTag extends BodyTagSupport and ItemSimpleTag extends
SimpleTagSupport. Which is true?
A.
ItemSimpleTag can find the enclosing instance of ShoppingListTag by calling
getParent() and casting the result to ShoppingListTag.
B.
ShoppingListTag can find the child instances of ItemSimpleTag by calling
super.getChildren() and casting each to an ItemSimpleTag.
C.
It is impossible for ItemSimpleTag and ShoppingListTag to find each other in a tag hierarchy
because one is a Simple tag and the other is a Classic tag.
D.
ShoppingListTag can find the child instances of ItemSimpleTag by calling
getChildren() on the PageContext and casting each to an ItemSimpleTag.
E.
ItemSimpleTag can find the enclosing instance of ShoppingListTag by calling
findAncestorWithClass() on the PageContext and casting the result to ShoppingListTag.
Explanation: