aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes custom tags must have a TLD? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "custom tags must have a TLD?" Watch "custom tags must have a TLD?" New topic
Author

custom tags must have a TLD?

nagalatha mitta
Greenhorn

Joined: Jun 11, 2007
Posts: 26
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
Dave Seligson
Greenhorn

Joined: Jul 12, 2007
Posts: 17
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.

DaveS
SCJP
Sourin K. Sen
Ranch Hand

Joined: May 02, 2006
Posts: 85
Hi Dave,

I think Nagalatha is trying to say that if a tag file is in a JAR inside the lib folder, then according to the specs, it MUST have a tld file associated with it.

So in this case how to configure the tld for the tag file?(Even I had the same question in mind...)

Nagalatha, please let me know if I interpreted your question properly or not...


Regards,<br />Sourin.
Ashwin Kumar
Greenhorn

Joined: Oct 13, 2005
Posts: 27
Hi folks,

If the question must be interpreted as "How to configure Tag files in TLD, when placed inside JAR?", then I think following would be the answer.

Use <tag-file> element in your tld to configure.



SCJP 1.4<br />SCBCD 5.0<br />SCWCD 1.4 (Preparing)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: custom tags must have a TLD?
 
Similar Threads
Question on Tag files
page 501 of HFSJ dought
dought
@ tag dought?
Dought about web.xml