wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes no body-cnotent  in a  tag 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 "no body-cnotent  in a  tag" Watch "no body-cnotent  in a  tag" New topic
Author

no body-cnotent in a tag

jyothi sanka
Ranch Hand

Joined: Aug 27, 2001
Posts: 39
<tag>
<name>Hello</name>
<tag-class>com.abc.HelloTag</tag-class>
<body-content>empty</body-content>
</tag>

If there is no <body-content> element then what is the result(container throws exception or takes any default value(scriptless or jsp)?
Praveen Kumar Mathaley
Ranch Hand

Joined: Apr 14, 2003
Posts: 45
default value is JSP
Durgaprasad Guduguntla
Ranch Hand

Joined: Oct 20, 2003
Posts: 99
The default value of <body-content> for Classic taghandlers is JSP. What is the default value in case of Simple taghandler? Scripting is not allowed inside the body of the Simple tags right?


Thanks,<br />Durgaprasad<br />SCJP1.4, SCWCD1.4, SCBCD1.3,<br />SCEA
kk nn
Greenhorn

Joined: Mar 06, 2005
Posts: 4
It is defaulted to 'scriptless'
Jose Esteban
Ranch Hand

Joined: Nov 28, 2004
Posts: 102
There's NO LONGER DEFAULT VALUES for the <body-content> element. According to JSP 2.0 spec page 3-29:
"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."
Ganeshji Marwaha
Greenhorn

Joined: Sep 16, 2004
Posts: 27
I agree with Jose... There will be a deploy-time error, i guess, if you dont put in a body-content tag


-- Ganeshji Marwaha<br />SCJP<br />SCWCD<br />SCBCD<br />MCP, MCP+SB, MCSD
Jose Esteban
Ranch Hand

Joined: Nov 28, 2004
Posts: 102
Sure, it is a mandatory element.
Praveen Kumar Mathaley
Ranch Hand

Joined: Apr 14, 2003
Posts: 45
yes, it's an mandatory element in jsp2.0

thank you...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: no body-cnotent in a tag
 
Similar Threads
Is this a valid tag definition ?
nested tags
body-content tag.
taglib descriptor questions?
Coding tag handlers or tag files together