aspose file tools*
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
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?