• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Default value for body content

 
Aleksander Zielinski
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would be very appreciated for clarification on this topic. Thank you.

Tag File body-content
----------------------
available: scriptless, tagdependent, empty
default: scriptless


Simple Tag body-content
------------------------
avaiable: scriptless, tagdependent, empty
default: scriptless


Classic Tag body-content
------------------------
available: JSP, scriptless, tagdependent, empty
default: ?
 
Charles Lyons
Author
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pre-JSP 2.0, the default <body-content> value in the TLD for all tags was "JSP". Since JSP 2.0, because "JSP" is an illegal value for SimpleTags, causing a validation error, there is no longer a default. The <body-content> tag is now mandatory rather than optional. A sensible default value to use however is "JSP" for classic tags and "scriptless" for SimpleTags.

Note that tag files, due to the fact they can be deployed without an explicit TLD, declare their body content through the tag directive, and this does have a default value of "scriptless".
[ April 17, 2006: Message edited by: Charles Lyons ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic