Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is empty tag?

 
Jing Teng
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is empty tag the tag with <body-content>empty</body-content> in its tld file?
 
Win Yu
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jing Teng:
is empty tag the tag with <body-content>empty</body-content> in its tld file?


what happen if I put body in my JSP even in tld it specify the body should be empty?compile error?
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
an empty tag is a tag that has no body, i.e. nothing between the opening and the closing tag
You can use the short form
<empty-tag />
or the normal form
<empty-tag></empty-tag>
HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
Win Yu
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how about <empty-tag attriname="value"/>, can I call it empty tag.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
About what I said before, I'm not sure anymore if you were talking about conventional XML empty tag or custom action empty tag
Because if you were talking about the second one, then you are right, a custom action tag that has no body is declared in the TLD file as <bodycontent>empty</bodycontent>
Please tell me...
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic