File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes allowable body-content values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "allowable body-content values" Watch "allowable body-content values" New topic
Author

allowable body-content values

Manikandan Jayaraman
Ranch Hand

Joined: Sep 15, 2004
Posts: 230
I would like to confirm on the allowable body-content for tag files, simple tags and classic tags. Also the default values if we dont give one.

Since I go on different mock exams (Different JSP versions, or may be answers are explained wrong) I got confused here.

Can someone help me?


Regards,<br />Mani<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (94%)
Dilshan Edirisuriya
Ranch Hand

Joined: Apr 22, 2006
Posts: 299
you better check this link,
http://www.coderanch.com/t/173676/java-Web-Component-SCWCD/certification/SimpleTag-default-body-content


Dilshan Edirisuriya SCJP1.4, SCWCD1.4, SCBCD 5
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
refer to this thread topic: SimpleTag default body-content
Pallavi Roy
Ranch Hand

Joined: Jun 01, 2006
Posts: 37
Hi,

The Tag files and Simple tags cannot process scripts in their body.
The simple tags in the TLD and tag files in their <%@ tag %> directive will have the possible values as :
a) empty
b) scriptless
c) tag-dependant


While classic tags can have the possible values for <body-content>:

a) empty
b) scriptless
c) tag-dependant
d) JSP

I hope i have not forgotton anything.
Questions on default values are generally not asked for <body-content> as indicated by Byran in a previous query on <body-content> you can refer to the forum.

Best Regards,
Pallavi


Break the ice - SCJP 1.4,<br />Where There's a will- SCWCD 1.4.<br />Back in action - Websphere Certified Portal 6 Application Developer
Manikandan Jayaraman
Ranch Hand

Joined: Sep 15, 2004
Posts: 230
Thanks All! That answered the default part of my question. How about the available and VALID values for body-content?

Tag Files: empty,scriptless,tagdependent

Simple Tags: empty,scriptless,tagdependent

Classic Tags: empty,scriptless,JSP,tagdependent

Am I right?
Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
For classic tags,simple tags and tag files default body-content is scriptless.
Please correct me if i am not correct.
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
please refer to the topic mentioned by me in previous post.its wrong...
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

1) There is no default body-content.
It makes no sense since the element <body-content> is REQUIRED in the TLD file.

2) All you have to remember is that JSP is for classic tags only.

that's as simple as that.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: allowable body-content values
 
Similar Threads
body-content possible values
Default values for body-content element
Is body-content="JSP" useless now ?
Need clarification on Ch. 10 mock question 17.
Doubt in Q17 in HFSJ Chapter 10