aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes tag body-content in spec 2.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "tag body-content in spec 2.4" Watch "tag body-content in spec 2.4" New topic
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: tag body-content in spec 2.4
 
Similar Threads
body-content in tags
body-content value??
body-content of tag directive in Tag File
re body-content element for custom tags
JspFragment