The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes body-content doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "body-content doubt" Watch "body-content doubt" New topic
Author

body-content doubt

Brijesh shah
Ranch Hand

Joined: Mar 16, 2007
Posts: 88
For a tag to accept any valid jsp code as its body, what should be the value of <body-content> for this tag's taglib descriptor?
Select 1 correct option.
A.JSP
B.jsp
C.any
D.text
E.The <body-content> subelement itself may be absent...Correct

In above i think "B" should be the answer, but i dont understand as answer given E ...
Kindly explain on this.

Thanks;
Brijesh
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4725

Brijesh, please Quote Your Sources.


A good workman is known by his tools.
Brijesh shah
Ranch Hand

Joined: Mar 16, 2007
Posts: 88
Originally posted by Brijesh shah:
I got this question from mock exam of web page
Question No.>>26.For a tag to accept any valid jsp code as its body, what should be the value of <body-content> for this tag's taglib descriptor?
Select 1 correct option.
A.JSP
B.jsp
C.any
D.text
E.The <body-content> subelement itself may be absent...Correct

In above i think "B" should be the answer, but i dont understand as answer given E ...

Kindly explain on this.

Thanks;
Brijesh
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 912
Hi

The body-content is an optional, and can accept : scriptless, JSP, tagdependent and empty. The deftaul value is JSP.
so A and E are correct.


SCJP, SCJD, SCWCD
dolly shah
Ranch Hand

Joined: Jun 18, 2007
Posts: 383
Default value of body-content was "JSP" in SCWCD version 1.3, as per SCWCD 1.4 version default value of body-content is "empty". Correct me if I am wrong.


SCJP-1.5<br />SCWCD-1.4
 
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: body-content doubt
 
Similar Threads
Tag file to declare that the Tag must not have a body
body-content
Simple Tag support - Expressions and scriplets
body-content Doubt !!!
"tagdependent" or "empy"