I have this one mapping
<servlet-mapping>
<servlet-name>service</servlet-name>
<url-pattern>/service/*</url-pattern>
</servlet-mapping>
but i also want
/service/master
to map to master servlet.
<servlet-mapping>
<servlet-name>master</servlet-name>
<url-pattern>/service/master</url-pattern>
</servlet-mapping>
I believe there is a conflict here since calling /service/* will trigger service servlet right away. Is there a way for me to use some kind of exclusion in servlet-mapping or may be regexp to do what I want to do?
Servlet mappings always use the most specific match, so the path
<context>/service/masterwill always map tomaster.This is the 1st rule of mappings from the Servlet 3.0 spec: