aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Is it legal to embed scriptlets inside custom 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 "Is it legal to embed scriptlets inside custom tag body " Watch "Is it legal to embed scriptlets inside custom tag body " New topic
Author

Is it legal to embed scriptlets inside custom tag body

Mike lothar
Greenhorn

Joined: Nov 16, 2004
Posts: 22
Is it legal to embed scriptlets inside Custom tag body, i mean to say setting <body-content> tag in taglib to JSP.

Thank you
Mike
Gabriel Forro
Ranch Hand

Joined: Apr 16, 2004
Posts: 59
Hello,

Yes it is legal. The rule is:
You can set <body-content> to JSP only for the classic custom tags (which implement the Tag interface) and then You can use scriptlet in the body of the tag.

!But You can not set <body-content> to JSP for custom tags which implement the SimpleTag interface and for tag files. For these tags, the legal options are: empty, tagdependent, scriptless.


Gabriel
Abhishek Mahanty
Greenhorn

Joined: Jan 26, 2004
Posts: 19
Originally posted by Mike lothar:
Is it legal to embed scriptlets inside Custom tag body, i mean to say setting <body-content> tag in taglib to JSP.

Thank you
Mike


Hi,
Check this out

http://www.coderanch.com/t/168570/java-Web-Component-SCWCD/certification/JSP-valid-value-body-content

Abhi.


SCEA-I, SCBCD 1.3, SCWCD 1.4, SCJP 1.4, OCP
 
wood burning stoves
 
subject: Is it legal to embed scriptlets inside custom tag body