Whenever the container receives a request URL that starts with
<webapp name>/account or <webapp name>/myaccount, it will send that
request to accountServlet.
aruna sameera wrote:the if url pattern accout or myaccount it matches the both request to the accountServlet.
but my question is why they use " /* " after them. "
A string beginning with a / and ending with the /* characters is used for determining
a servlet path mapping. We will discuss servlet paths in section 5.2.4.