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 doubt on body-content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doubt on body-content" Watch "doubt on body-content" New topic
Author

doubt on body-content

muthu kumaran
Ranch Hand

Joined: Oct 26, 2004
Posts: 56
Hi
I have some doubt on the <body-content> for the <tag> element in DD.
What is the default value of <body-content> for Simple Tags.

I had a problem when working with Simple Tags in Tomcat.
If I don't specify <body-content> for a Simple Tag, the container(Tomcat in this case) takes JSP as the default value for <body-content>.

But since Simple Tags don't support JSP as their body-content , I get compilation error.

So IS <BODY-CONTENT> a mandatory tag for Simple Tags , but not for Classic ones ?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

From TLD 2.0:
body-content:
Specifies the format for the body of this tag.
The default in JSP 1.2 was "JSP" but because this
is an invalid setting for simple tag handlers, there
is no longer a default in JSP 2.0. A reasonable
default for simple tag handlers is "scriptless" if
the tag can have a body.

So you'd better set it to "scriptless" if you're not using the body.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: doubt on body-content