• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using Tag files with attributes on Tomcat  RSS feed

Debashish Chakrabarty
Ranch Hand
Posts: 231
Firefox Browser Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The chapter on Custom Tag Development in HFS has a section on TagFiles (Pages 492-494). In the first example they have shown the Tag file content for Header.tag and the calling JSP similar to the following:

Header.tag file:Calling JSP:

I noticed that this example won't run on Tomcat 5.0.28 as the attribute "subTitle" won't be recognised until the same is declared explicitly (even if the attribute is not mandatory) in the Tag file. To make it work the Header.tag file should be modified as follows:Am I getting it right?
[ December 14, 2005: Message edited by: Debashish Chakrabarty ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!