• Post Reply Bookmark Topic Watch Topic
  • New Topic

Simple Tag Handler Default body content

 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it true that Simple tag handlers does not have any default value for its body content?I guess body content is not a mandatory element in tld.In that case if we dont specify one for a tag handler implementing simple tag,what will happen?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's an entry in the FAQ about this : http://faq.javaranch.com/view?BodyTagContent

What will happen if you don't specify a value for the body content ? Who knows ? It might depend on the container, so don't rely on it and always set the body content.
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Santou
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Santou,
I just noticed from the jsp spec that body-content is a mandatory element for <tag>.I guess default value is no longer valid for jsp 2.0,only tag files have default values and the value is scriptless
 
What are you doing? You are supposed to be reading this 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!