• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dount in web.xml

 
raja ram
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have following Mappings in my web.xml file i have same URL Pattern my doubt is which one will be called
from what i found is that always the second servlet being called. I am using Apache Tomcat 5.1.x server


if i want "testsess" servlet to be called when i move it down to second place this will be called
is this container specific or ALWAYS SECOND MATCH WILL BE CONSIDERED.

Thanks
 
Vilas Lawande
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it must call first servlet.
 
raja ram
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Any Updates on this

Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All the spec says is : The container will try to find an exact match of the path of the request to the path of the servlet. A successful match selects the servlet.. So I guess this is container dependant.
 
Marcus Sanchez
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds to me that if you put a third mapping tomcat would use that instead...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic