what is the reason for using " /* " in the url pattern place.
but i don't understand what is they use " /* " for url mapping
Whenever the container receives a request URL that starts with
<webapp name>/account or <webapp name>/myaccount, it will send that
request to accountServlet.
Think about how would the above statement need to change if the "/*" were left off?
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. "
You might want to look at this in your post.
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.