• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

body-content

 
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?
 
Ranch Hand
Posts: 893
Tomcat Server Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following thread has the answer


bodytag interface
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic