I have a fundamental question about web applications.
The question is:
How does a URL like www.abc.com:8080/app1/app1servlet gets mapped to web application "app1".
Following is what happens
1. Put "www.abc.com:8080/app1/app1servlet" in browser address bar and hit go
2. Browser sends a HTTP request as below
GET /app1/app1servlet HTTP/1.1
Question: how does the servlet container determine that the request has to routed to application "app1". Does the container always assumes that first part of URL is application name(here app1)