aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Using Tag files with attributes on Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Using Tag files with attributes on Tomcat" Watch "Using Tag files with attributes on Tomcat" New topic
Author

Using Tag files with attributes on Tomcat

Debashish Chakrabarty
Ranch Hand

Joined: May 14, 2002
Posts: 225

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 ]

Debashish
SCJP2, SCWCD 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Tag files with attributes on Tomcat
 
Similar Threads
Tag Files : Tag Attributes Doubt !!!
Custom Tags Page 496 HFSJ Question
doubt on custom tags..
@Variable Directive
Expression Language is not working in Jsp Tags