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
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Liutauras Vilda
paul wheaton
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Carey Brown
Frits Walraven
Bartenders:
Piet Souris
Himai Minh
Forum:
Web Component Certification (OCEJWCD)
Custom tag with parameters - HFSJ pg. 494
Mukunthan Shanmuganathan
Ranch Hand
Posts: 32
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Guys!
Inoder to check the custom tags with parameters (HFSJ pg. 494) I tried as shown in the HFSJ book. when I run I got
/result.jsp(3,1) Attribute subTitle invalid for tag Header according to TLD..
My cade is as follows
----- <%@ taglib prefix="myTags" tagdir="/WEB-INF/tags"%> <html><body> <myTags:Header subTitle="We take the Sting out of SOAP"/> </body></html> ----- <em><strong>${subTitle}</strong></em><br>
Can you tell me What I did worng here?
:roll:
Dare to know!
Thuwaragan Sundaramoorthy
Greenhorn
Posts: 26
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You have declare the attribute inside the tag file. Use
<%@ attribute name="subTitle" required="true" rtexprvalue="true" %>
[ October 12, 2007: Message edited by: Sundaramoorthy Thuwaragan ]
------------------------------<br />SCJP 1.5
Mukunthan Shanmuganathan
Ranch Hand
Posts: 32
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hey! Thanks.
But a small change there should be an @, you miss.
Thank you.
Dare to know!
Thuwaragan Sundaramoorthy
Greenhorn
Posts: 26
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Tomcat
5.5 works fine and displays the result correctly.
Tomcat 6.0 displays the EL variable. ${subTitle}.
Can anybody help me on this?
------------------------------<br />SCJP 1.5
Pay attention! Tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
jsp:param with jsp:include
Using Tag files with attributes on Tomcat
Expression Language is not working in Jsp Tags
Custom Tags Page 496 HFSJ Question
custom tag doubt
More...