I have declared the below servlet-mapping tag in my web.xml, <servlet-mapping> <servlet-name>internal name</servlet-name> <url-pattern>/bar/*</url-pattern> </servlet-mapping> Now user request -- http://www.abc.com/foo/bar For this request, will the above servlet mapped to 'internal name' will be served or not? If it is serving, how is it happening? I hope it should only if the user requests -- http://www.abc.com/foo/bar/
Thanks in Advance,
posted 11 years ago
Yes it will be served.
you had mentioned * at the end which means anything which includes nothing.