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

about body-content in tld

Alan Hermin
Ranch Hand

Joined: Feb 16, 2006
Posts: 290
Hi all..

Iam preparing for SCWCD using HFSJ..
i want t know what is the default value for <body-content> at tld file if this element not specified..

Regards
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

In JSP1.2 the default was "JSP", but in JSP 2.0 there is no default.


[My Blog]
All roads lead to JavaRanch
Dilshan Edirisuriya
Ranch Hand

Joined: Apr 22, 2006
Posts: 299
I think it is "scriptless". For tag files they have clearly mentioned this but for simple and classic tag tlds I couldn't find a place to find it.
You better read this post
http://www.coderanch.com/t/173117/java-Web-Component-SCWCD/certification/body-content-JSP-useless-now


Dilshan Edirisuriya SCJP1.4, SCWCD1.4, SCBCD 5
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Dilshan , maybe you're confusing the body-content in the tag directive,
and the body-content in the tld.
Dilshan Edirisuriya
Ranch Hand

Joined: Apr 22, 2006
Posts: 299
I know for tag files it is "scriptless" but for body-content in tld I couldn't find? Is that JSP? But in HFSJ they have given only possible values for that are empty,scriptless,tagdependant. They haven't mentioned about the jsp
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

From the spec :
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.


Dishan, I don't know why you are posting all your messages twice, but you can delete at least one of them by clicking the "edit/delete post" icon
Dilshan Edirisuriya
Ranch Hand

Joined: Apr 22, 2006
Posts: 299
Sorry for the inconvinience. Internet connection here is awsome.

I think I got it. Thank you
Alan Hermin
Ranch Hand

Joined: Feb 16, 2006
Posts: 290
thnx to all
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about body-content in tld