I have an application "sample"
To
test example of TAG files packaged in JAR file, I created /result.jsp
Next I know that TAG file has to be placed in META-INF/tags So I created META-INF folder separately and in META-INF/tags I created
MoreFooter.tag
Next I created META-INF/TLDs, I created metaTag.tld
MANIFEST.MF
Next I created a jar (sample-tld.jar) of
this META-INF folder and copied to /sample/WEB-INF/lib.
sample-tld.jar structure
--------tags
----------------MoreFooter.tag
--------TLDs
----------------metaTag.tld
--------MANIFEST.MF
Webapp
sample structure
--------result.jsp
--------WEB-INF
----------------lib
------------------------sample-tld.jar
--------META-INF
----------------MANIFEST.MF
Now there are some support
servlets which forward my request to this
JSP. They are working fine. But when I hit it. This is the output
TRYING TAG FILES
DISPLAYING SOME FOOTER THRU TAG FILES in META-INF. ULTIMATE!!!
But for second line of output I expected it to come out in some color followed by "THIS IS IN META-INF ONCE MORE:"
It seems container is not able to associate "comtags" URI with MoreFooter.tag in the jar.
The only thing I can think of is I might have to put something in the JSP to relate the URI to TAG file.
but
<%@ taglib prefix="comtags" uri="/META-INF/tags" %> doesn't work since it says File "/META-INF/tags" not found
<%@ taglib prefix="comtags" tagdir="/META-INF/tags" %> doesn't work since it says that tagdir should start with /WEB-INF/tags
What am I doing wrong here ???