| Author |
tag body-content in spec 2.4
|
Adri Smith
Ranch Hand
Joined: Jun 07, 2004
Posts: 76
|
|
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
Joined: Aug 10, 2002
Posts: 360
|
|
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
|
Siva
Co-Author - SCMAD Exam Guide - ISBN:9780070077881
Author - Java certification success, Part 4: SCEA
|
 |
Adri Smith
Ranch Hand
Joined: Jun 07, 2004
Posts: 76
|
|
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
|
 |
 |
|
|
subject: tag body-content in spec 2.4
|
|
|