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

tag body-content in spec 2.4

 
Adri Smith
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone can tell what changes for the tag body-content under the element tag with the coming of the spec 2.4 ?

As shown in the spec this tag can take the following values:
scriptless|tagdependent|empty

so if my body contains JSP code how to specify that the tag will handle it ?

In spec 2.3 as you surely know that was :
JSP|tagdependent|empty

Does the default value changed ?

What is the difference between scriptless and empty ? no JSP code but plain text is allowed ?

Thanks in advance,
Adri
 
Sivasundaram Umapathy
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you look the page 3-20 in JSP 2.0 Specification, you can find that the body-content can take 4 values : "tagdependent","JSP","empty","scriptless". May be you have seen the simple tag handlers and tag files which do not allow nested JSP syntax in the body and hence the value "JSP" in invalid for their body-content

Yes. The default value in JSP 1.2 was "JSP" but as it is a invalid value for simple tag handlers, the specification does not define the default value anymore.

"scriptless" means the body can accept plain text, EL Expressions, and JSP action elements but disallows any scripting elements. "empty" means you cannot have anything in the body.

HTH
Siva
 
Adri Smith
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right what I have it is for tag files only.

I have been looking too fast in the JSP spec. I should sleep more

I would like to thank you for your response this makes me clearly awake about the values authorized for the body-content tag and that there is not anymore any default value.

best regards
Adri
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic