wood burning stoves*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Default Value of body-content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Default Value of body-content" Watch "Default Value of body-content" New topic
Author

Default Value of body-content

PRavi kumar
Ranch Hand

Joined: May 13, 2007
Posts: 69
Hi Ranchers,

what is the default value of <body-content> for classic tags.

I read the difault value of tag files are scriptless. is this correct.
Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Hi,

For tag files, the default is scriptless, but, for Classic and Simple tags, and because the JSP is invalid for Classic tags, there's no default value for body-content, so you have to choose one explicitly.

Best of luck ...


Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Sorry, the JSP is invalid for Simple tags
Amit Goyal
Ranch Hand

Joined: Feb 21, 2006
Posts: 95
The default value for tag files is "Scriptless".
While for classic and simple tags <body-content> tag is mandatory in .tld file so it do not make any sense to have default value for them.
[ July 23, 2007: Message edited by: Amit Goyal ]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Please refer to this FAQ :
http://faq.javaranch.com/view?BodyTagContent


[My Blog]
All roads lead to JavaRanch
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Default Value of body-content
 
Similar Threads
default value of body-content tag
is body-content mandatory in jsp 2.0
body-content in tag
doubt in mock regarding body-ontext
taglib descriptor doubt