• Post Reply Bookmark Topic Watch Topic
  • New Topic

About Tags

 
Akshatha Nayak
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys ,
Question " When implementing a tag, if the tag just includes the body verbatim, or if it does not include the body, then the tag handler class must extend the BodyTagSupport class. Is this statement true of false. "

i got this question from a mock exam site ... i didnt get the question exactally .. Answer to this is "false. Such a class should extend the TagSupport class". i dont understand y cant it extend BodyTagSupport
 
Gabriel Forro
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Yes the answer is false, as it's enough to extend the TagSupport class.

You must extend the BodyTagSupport class, if You want to manipulate the body content. It is not the case from the question You qouted.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!