Hi Folks,
I am studying for SCWCD and a question about Custom tags came to my mind.
It is related to question 17 of the exercises of chapter 10.
The keys states that letter D is incorrect but I think it is correct, since my:complexTag is a Classic Tag and a classic tag accepts
JSP as a body content value.
17. Given a tag, simpleTag, whose handler is implemented using the Simple tag model and a tag, complexTag, whose handler is implemented using the Classic tag model. Both tags are declared to be non-empty and non-tag dependente in the TLD.
Which JSP code snippets are valid uses of these tag?
D. <my:simpleTag>
<my:complexTag>
<% i++; %>
</my:complexTag>
</my:simpleTag>
Why is it incorrect?
Thanks in advance.
Rick