File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes How servlet is acessed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How servlet is acessed" Watch "How servlet is acessed" New topic

How servlet is acessed

jignesh soni
Ranch Hand

Joined: Dec 10, 2007
Posts: 150
When a request comes from the browser for a static HTML web page, web server retrieves that page and response is given back to browser.
Now, in that HTML page, form is there which requires to access a servlet. In this case, web server handover the request to application server which in turn will pass to web container. Web container checks the XML file of all the applications to look for the servlet requested. Now XML files dont contain the name of application, so if there are more than 1 applications in web container, which contain servlet of the same name, how would web container know which servlet to access ?

Thanks in advance
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63862

Every web application has a unique context path.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: How servlet is acessed
It's not a secret anymore!