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 question about <body-content> 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 "question about <body-content> " Watch "question about <body-content> " New topic
Author

question about <body-content>

Malika Ben Aziz
Greenhorn

Joined: Oct 26, 2009
Posts: 23
Hi,


In custom tags, the <body-content> is optional or mandatory?


what happens if I let it empty, like this <body-content></body-content>?
what is it's default value

Thanks
Shoban Babu
Greenhorn

Joined: Jul 29, 2010
Posts: 2
In custom tags, the <body-content> is mandatory.It takes one value from the following values: empty,scriptless,tagdependent or JSP.
<body-content>empty</body-content> means the tag must not have any body
<body-content>scriptless</body-content> means the tag must not have scripting elements
<body-content>tagdependent</body-content>means the tag body is treated as plain text
<body-content>JSP</body-content>means the tag body can have anything that can go inside a jsp
Malika Ben Aziz
Greenhorn

Joined: Oct 26, 2009
Posts: 23
Shoban Babu wrote:In custom tags, the <body-content> is mandatory.It takes one value from the following values: empty,scriptless,tagdependent or JSP.
<body-content>empty</body-content> means the tag must not have any body
<body-content>scriptless</body-content> means the tag must not have scripting elements
<body-content>tagdependent</body-content>means the tag body is treated as plain text
<body-content>JSP</body-content>means the tag body can have anything that can go inside a jsp

OK, thanks
but what id It's left empty
<body-content> </body-content>

What is the default value?
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9321
    
  17

Check this faq. The body-content tag is optional for classic tags...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: question about <body-content>