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
Joined: Aug 10, 2002
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.