Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJWCD
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Web Component Certification (OCEJWCD)
Classical tag with JSP content
Himai Minh
Bartender
Posts: 2418
13
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have a tld file like this:
.... <tag> <name>simpleTag</name> <tagclass>murach.tags.SimpleTag</tagclass> <bodycontent>scriptless</bodycontent> </tag> <tag> <name>complexTag</name> <tagclass>murach.tags.ComplexTag</tagclass> <body-content>JSP</body-content> </tag>
<html> <body> <%@ taglib prefix="mime" uri="/WEB-INF/murach.tld" %> <mime:simpleTag> <mime:complexTag> <% int i=0; %> <% i++;%> </mime:complexTag> </mime:simpleTag> </body> </html>
But the compiler says script is not allowed in the complexTag. I think if the body content of complexTag is
JSP
, it allows JSP.
Frits Walraven
Creator of Enthuware JWS+ V6
Posts: 3411
320
I like...
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Your outer tag has a scriptless body content (you made a typo: <body-content>) and that is probably the reason why you can't use scriptlets (although it is inside the inner tag).
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Scripting in Simple Tag - Head First question
Unable to initialize TldLocationsCache
Creating and populating a List of javaBeans in a JSP w/o using scriptlets
Creating Custom Tags using BodyTagSupport
problem in Taglib in jsp
More...