• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

body-content

 
dolly shah
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just because a body is allowed doesn't mean the tag is required to use one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic