• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

body-content

 
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just because a body is allowed doesn't mean the tag is required to use one.
 
Well don't expect me to do the dishes! This ad has been cleaned for your convenience:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic