Hi guys,
I think I did not get well the stuff presented on page 472 of this book regarding the <body-content> element.
I know there are four types of values allowed in this element :
<body-content>
empty</body-content>
<body-content>
scriptless</body-content>
<body-content>
tagdependent</body-content>
<body-content>
JSP</body-content>
However, when I saw the question below I got quite confused.
Given a tag,
simpleTag, whose handler is implemented using the Sample tag model and a tag,
complexTag, whose handler is implemented using the Classic tag model.
Both tags are declared to be non-empty in the TLD.
Which JSP code snippets are valid uses of this tag ?
According to answer gave by authors, B and D options are incorrect because both have scripting code in it.
My question is : If I can declare both tags in TLD by putting
<body-content>
JSP</body-content> in <body-content> element which allows the tag have anything that goes inside a JSP, why options B and D are incorrect ?