File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How servlet is acessed

 
jignesh soni
Ranch Hand
Posts: 150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Every web application has a unique context path.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic