• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet mapping....

 
Narasimha Rao B.
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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,
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it will be served.

you had mentioned * at the end which means anything which includes nothing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic