This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes No scripting inside tag body? 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 scripting inside tag body?" Watch "No scripting inside tag body?" New topic
Author

No scripting inside tag body?

warren li
Ranch Hand

Joined: May 23, 2006
Posts: 128
"No scripting inside tag body", because the <body-content> in tld is default scriptless. Does this only apply to simple tags and tag files? or all tags? Because I certainly have used scripting inside tags before, e.g. those struts tags and JSTL tags.

Someone please clarify. Thanks.


SCBCD 1.3: 94%<br />SCWCD 1.4: 91%<br />SCJP 5: 95%
Tridib Samanta
Ranch Hand

Joined: Apr 28, 2004
Posts: 128
Check out the tld files available in the jar files used for struts and jstl.
If you found


that means your tag library uses JSP1.1. In JSP 1.1 the deafuls body-content type is "JSP".

In case your tags are JSP 2.0 compliant, the tld must specify the body-content as "JSP" in case it allows scriptlets.


Thanks, Tridib
SCJP 1.4, SCWCD 1.4, SCBCD 5.0
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
scriptless is the default for <bod-content> of Simple tags and tag files whereas for classic tags <body-content> is mandatory and hence there is no default value for it.

This is for JSP 2.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No scripting inside tag body?
 
Similar Threads
JSP [body-content] In our TLD
question about <body-content>
Scripting in Tag file
Custom Tag BodyContent
<body-content> specification of a tag in TLD