Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Custom tag with parameters - HFSJ pg. 494

 
Mukunthan Shanmuganathan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


Can you tell me What I did worng here?

:roll:
 
Thuwaragan Sundaramoorthy
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have declare the attribute inside the tag file. Use

[ October 12, 2007: Message edited by: Sundaramoorthy Thuwaragan ]
 
Mukunthan Shanmuganathan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey! Thanks.

But a small change there should be an @, you miss.

Thank you.

 
Thuwaragan Sundaramoorthy
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat 5.5 works fine and displays the result correctly.
Tomcat 6.0 displays the EL variable. ${subTitle}.

Can anybody help me on this?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!