• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on TLDs

 
NishaP Raj
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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?

a.It is an empty tag.
b.It may be used as an empty tag.
c.It must implement BodyTag interface.
d.It may take an attribute named 'name'. But if present, its value must be dynamic.

The answer is b and c. Can anyone give the explanation for choice c.
 
Jan Sterk
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dunno, looks to me it just has to implement any JspTag interface (SimpleTag, Tag, IterationTag).

Aside of that, what is really offending, is
Replaces emoticons such as , , and with images.
 
Dee Brown
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice one Jan!
 
Kram Nart
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My answer is b only as well. I don't see a reason behind (c) as an answer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic