Forums Register Login

body-content

+Pie Number of slices to send: Send
Given the following entry in the tld

<tag>
<name>Quiz</name>
<tagclass>com.examulator.Quiz</tagclass>
<body-content>tagdependent</body-content>
</tag>


Which of the following is a valid use of the tag within a jsp page assuming that q has been set up as a valid prefix?

1)
<q:quiz topic="java"></q:quiz>
2)
<q:quiz>select * from questions <q:quiz/>
3)
<q:quiz/>
4)
<q:quiz></q:quiz>
5)-
<q:quiz>select * from questions </q:quiz>


Choose at least one answer.
a. 1 Incorrect
b. 2 Incorrect
c. 3 Correct
d. 4 Correct
e. 5 Correct
The is a typical example of using a tag declared with a body as tagdependent.
-this example is from Marcus Green mock exams. I don't understand the output. Why empty tag is allowed in a tagdependent. Can anyone please explain?
+Pie Number of slices to send: Send
Just because a body is allowed doesn't mean the tag is required to use one.
When all four tires fall off your canoe, how many tiny ads does it take to build a doghouse?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 596 times.
Similar Threads
cutomTags
tags question
Question on tld
customTags
New summary exam
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:38:07.