Originally posted by Dinkar Chaturvedi:
I was wondering if the directive I added in my JSP for the tag file is correct or not.
Of course it's not. That directive is telling the container to look in the WEB-INF/tags folder of the web app, and the tag's not there.
Within the TLD file of the tag library, you would declare the tag like this example:
Note that you can create sub-folders under META-INF. Then place the tag file in the META-INF/whatever folder within the jar file.
Now here's the part that you might be missing: the TLD file for the jarred tag must be
within the jar file itself in the META-INF folder.
This way, you can create jar files that are self-contained tag libraries, where there's no need to do anything but drop the jar file (or files as in the case of the JSTL) into the WEB-INF/lib, and then use the appropriate tag declaration on the pages.
You cannot reference the jarred tag file from a TLD that is not
in the jar file.
[ April 06, 2007: Message edited by: Bear Bibeault ]