Say I’m using a tag library packaged in a JAR file. Given that I don’t want to modify the JAR file, is there a way to change or override the declared URI of the tag library in case that its URI collides with another tag library?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you get conflicting URIs for different taglibs and don’t want to change the JAR, you could extract the TLD from the JAR and try to overwrite it in
web.xmlwith something like this:This assumes you placed the extracted TLD file in
/WEB-INF/tlds/yourtaglib.tldand that you will refer to it withhttp://foobar.orgin the JSPs: