aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How servlet is acessed" Watch "How servlet is acessed" New topic
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 61420
    
  67

Every web application has a unique context path.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How servlet is acessed