aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Default value for body-content element in DD 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 "Default value for body-content element in DD" Watch "Default value for body-content element in DD" New topic
Author

Default value for body-content element in DD

Edisandro Bessa
Ranch Hand

Joined: Jan 19, 2006
Posts: 584
Hi guys,

Could you please confirm what are the default values of the <body-content> element for Tag files, Simple Tags and Classic Tags ?

As far as I know (Maybe I'm wrong) the default values are :

Tag Files :
Default : SCRIPTLESS
Possible Values : SCRIPTLESS, TAGDEPENDENT & EMPTY

Simple Tags :
Default : Vendor Specific. A resonable value would be SCRIPTLESS but it depends on vendor.

Possible Values : SCRIPTLESS, TAGDEPENDENT & EMPTY

Classic Tags :

Default : JSP. I'm not sure because it was the default value in previous version of the spec. But what about the default value considered in the latest SPEC version ? Could you please clarify ?

Possible Values : SCRIPTLESS, TAGDEPENDENT, EMPTY & JSP. I'm really in doubt whether SCRIPTLESS is allowed for classic tags once it has been created as of JSP 2.0 SPEC. Could you please clarify ?


TIA,
Edisandro Bessa.
[ November 01, 2006: Message edited by: Edisandro Bessa ]

"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

I agree about Tag Files.

However, I think that the definition for Simple Tags and Classic Tags is the same, except that Simple Tags do not accept JSP

Possible Value: tagdependent, empty, scriptless, JSP (Classic Tags only)

Default Value: Because "JSP" is invalid for Simple Tag handlers, there is no default value. You should put one explicitly, like "scriptless", if needed. I don't think it's even vendor specific.


[My Blog]
All roads lead to JavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Default value for body-content element in DD