Servlet mapping url patterns
Posted
by Scobal
on Stack Overflow
See other posts from Stack Overflow
or by Scobal
Published on 2010-05-26T10:12:42Z
Indexed on
2010/05/26
10:21 UTC
Read the original article
Hit count: 352
I have the following urls that need mapping to two different servlets. Can anyone suggest a working url-pattern please?
vehlocsearch-ws:
/ws/vehlocsearch/vehlocsearch
/ws/vehavailrate/vehavailratevehlocsearch
/ws/vehavailrate/vehavailratevehlocsearch.wsdl
vehavailrate-ws:
/ws/vehavailrate/vehavailrate
/ws/vehavailrate/vehavailratevehavailrate
/ws/vehavailrate/vehavailratevehavailrate.wsdl
So far I have this, which feels right, but isn't:
<servlet-mapping>
<servlet-name>vehlocsearch-ws</servlet-name>
<url-pattern>*.vehlocsearch*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>vehavailrate-ws</servlet-name>
<url-pattern>*.vehavailrate*</url-pattern>
</servlet-mapping>
Note: I have no control over the incoming urls
© Stack Overflow or respective owner