• 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
Consider the following description of a tag in a TLD:



<tag>

<name>SmilyTag</name>

<tag-class>com.enthuware.ctags.SmilyTag</tag-class>

<description>

Replaces emoticons such as , , and with images.

</description>

<body-content>tagdependent</body-content>

<attribute>

<name>name</name>

<required>false</required>

<rtexprvalue>true</rtexprvalue>

</attribute>

</tag>



Which of the following statements regarding the above tag are correct?

Options

Select 2 correct options.

It is an empty tag.

It may be used as an empty tag.

It must have a body.-answer

It must implement BodyTag interface.-answer

It may take an attribute named 'name'. But if present, its value must be dynamic.

explaination

Since the body-content is tagdependent, it must implement the BodyTag interface.

-This is also from the jdiscuss.com. .I have mention answers above.
-I don't understand why we need to implement BodyTag interface if the body-content is tagdependent. Can anyone help me?
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following thread has the answer


bodytag interface
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic