Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic