hi friends I have a dought regarding custom tags(which is used to invoke Tag File)and its TLD. HFSJ book page 500-says that "custom tags must have a TLD ,but Tag Files can declare attributes and body-content directly inside the Tag File,and need Tlds only if the Tag File is in a JAR." my dought is:if my custom tag is trying to invoke Tag File ,then what to configuer in <name> and <tag-class> subelements of <tag> in TLD? If anybody knows the answer please let me know.
Thanks in advance
Joined: Jul 12, 2007
Custom tags don't invoke tag files. Tag files are the *special case* of tags that don't need a tag class. Tag files are an easy way for your non-java-programming team to include EL-processed jsp fragment files, like headers or footers.
Custom tags, alternatively, require a java class extended by one of the Tag Support classes, and thus require a nice meaty section in your TLD file.