Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Default values for body-content element

 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I couldn't find default values for the <body-content> element for all three

1. Tag Files
2. Simple Tags
3. Custome tags

in JSP 2.0 specs.

I like to confirm whether these are correct.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64692
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To tell you the truth, I have no idea what the defaults are (or even if there are defaults), as I think it'd be a bad idea to rely upon them. I always explicitly state what content the tag is expecting.

Additionally, if you auto-generate documentation from the TLD files (which I do, fastidiously using the <description> tags throughout the TLDs) omitting such information makes the docuementation much less useful.

If you do not auto-generate docs, being explicit within the TLD is even more important as it probably serves as the only documentation for your tags.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic