aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes <body-content> in <tag> of <taglib> in .tld Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "<body-content> in <tag> of <taglib> in .tld" Watch "<body-content> in <tag> of <taglib> in .tld" New topic
Author

<body-content> in <tag> of <taglib> in .tld

Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

Dear ranchers, please tell me if it is obligatory to specify <body-content>?
I test it and I have an error that I have invalid body content - without specyfing it.
Is there any implicit body content?
I know that there is one in tag files - scriptless. But what about tld?


SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

You kind of answered your own question, didn't you?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

Bear, sorry - I am real confused. One Tomcat version is different from another
I want to be sure.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

If you omit it, and get an error, that means it's mandatory.

How are Tomcat version different? If they implement different revision levels of the JSP Specification, then yeah, the rules might be different.
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

Please read the end of:

http://www.coderanch.com/t/470561/Web-Component-Certification-SCWCD/certification/jsp-useBean

You will know what I have on my mind. JSP spec says something: may but it is not obligatory
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1



and

The TLD for the class tag.DoItManyTimes specifies an invalid body-content (JSP) for a SimpleTag.

I do not understand it.
Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
Hi, Lucas.

For SimpleTag's 'jsp' is not valid option of <body-content>
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

JSP is not valid for Simple Tags and Tag Files? Something more?
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

The answer is simple. The default body-content value is JSP, and since simple tags cannot have its body-content as JSP, so if you don't include the body-content tag, you'll get an error...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

Thanks, I see. But where JSP body-content can be used?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

Classic tags.
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

Thanks Bear. Everything is clear now. I am going sleeping now, good night JavaRanch
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

good night JavaRanch


[Thumbnail for GN.jpg]

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: <body-content> in <tag> of <taglib> in .tld