I always asumed that the uri in the directive MUST match with the uri in the tld, therefore choose 2nd one but seems like its incorrect and the 1st one is correct.
I havent been able to convince my self, can someone help me out ?
Both Bear and Rajeev are correct here, but the explanation why
is allowed here is found in the specifications (jsp2.0)
JSP.18.104.22.168 Computing TLD Locations
[removed... just have a look at this part later..]
Finally, the fallback rule allows a taglib directive to refer directly to the TLD.
This arrangement is very convenient for quick development at the expense of less
flexibility and accountability.