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
posted 15 years ago
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
<uri> tag of tld file is usefulonly 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
"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads