jQuery in Action, 3rd edition
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes body-content  confuse. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "body-content  confuse." Watch "body-content  confuse." New topic

body-content confuse.

Anna Wang
Ranch Hand

Joined: May 26, 2006
Posts: 30
Hello, everyone,

From HFSJ P. 472, it shows:
<body-content> can be: empty, scriptless, tagdependent, JSP in a tag.
I was wondering what is the default value if No <body-content>, is it JSP, right?(I remember I saw this somewhere, not sure)

So, If the tag is simple tag or classic tag, what's the value of <body-content>? Still those four value(empty, scriptless, tagdependent, JSP)? I am confused in this question:

<%= display %>

is invalide because body includes a JSP expression.

Can anybody explain this? Thank you very much.

Rajat Gupta

Joined: Sep 16, 2005
Posts: 7
I guess <body-content> is a required while specifying the <taglib> in DD. If you don't have it defined, its an error. Hence, the default value doesn't exist. Please correct me if I am wrong.

Rajat Gupta
Sivasundaram Umapathy
Ranch Hand

Joined: Aug 10, 2002
Posts: 360
JSP was the default value for <body-content> in JSP 1.2 spec. But in JSP 2.0 spec, this was changed and there isn't a default value any more.

Co-Author - SCMAD Exam Guide - ISBN:9780070077881
Author - Java certification success, Part 4: SCEA
Anbu Rajendran

Joined: Aug 09, 2006
Posts: 18
The body content of a simple tag is a JspFragment.
A JspFragment cannot contain scriptlets. So a
simple tag cannot have scriptlets in its tag.
I agree. Here's the link: http://aspose.com/file-tools
subject: body-content confuse.
jQuery in Action, 3rd edition