Forums Register Login

taglibs distributed in jars

+Pie Number of slices to send: Send
If I have a tablib jar (acme.jar) with:
/com/acme/HelloTag.class
/META-INF/lib.tld
where lib.tld has an element:
<uri>/acmeTags</uri>
and the jar is placed in /WEB-INF/lib within my app, then is this library accessible in the JSP page by:
<%@taglib uri="/acmeTags" prefix="acme"%> ?
If an explicit mapping would be necessary in web.xml, the spec says that the location should point to the jar file, so would this be valid:
<taglib>
<taglib-uri>/sameAsJSPuri</taglib-uri>
<taglib-location>/lib/acme.jar</taglib-location>
</taglib>
?
Thanks,
Josh
+Pie Number of slices to send: Send
I think yes.But i have never tried this.But the logic is we need to tell the JSP-Engine that for "xyz"(variable we will be using in jsp) pls refer to jar file.
Logically,we should map.
Hey man but what do u get if u map it and not map it.Have u tried this.
All the Best
+Pie Number of slices to send: Send
<uri> tag of tld file is useful only when we have .jar files.
As if I have not jar file then in web.xml tag <taglib-location> will have path of tld file.
So am i right that <uri> tag is used when we are going to make jar of the tags.
Correct me if I am wrong (CMIW)
TIA
and POOF! You're gone! But look, this tiny ad is still here:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 533 times.
Similar Threads
missing struts*.tld files
JWebPlus -Question ID :998318336796
Mock Exam Question
File "/WEB-INF/struts-logic.tld" not found
i have a question
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:50:09.