Hi Narendra, Though there is nothing specific about this in spec, In general container behaviour would be like overriding the old value with new value if the key (url-pattern in this case) is same. Tomcat container would have used a data structure HashMap(or similar to this) where upon parsing it keeps loading all values. Since the url-pattern key is already used, upon next entry it overrides the value.. But in general we dont define two same url patterns with one resource right unless that is done mistakenly!! HTH.
SCJA, SCJP, SCWCD, SCBCD, SCDJWS.
posted 14 years ago
Thank for the explanation. Really we do not use such mapping. I did this only for the testing purpose. It is like the multiple init parameters in the context param or servlet param. It takes the last value in tomcat.