Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet HTTP protocol

 
raj joe
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is the requested URL from the browser translated by webservers.
I understand that It is throught Http protocol,but how exactly it happens and when do servlets come into picture.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets come into the picture because the requested URL points to a servlet or JSP directly or indirectly. Depending on how the request is sent (POST or GET) the container calls the appropriate http method (doPost or doGet) that the servlet implements.

you can get more info at:

Core Servlets
 
Rajesh Agarwal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raj,

When you request a website, the hostname is converted to an IP address by the DNS. Then the request hops thru the internet using the gateway and reached the appropriate server.

In the home page there could be an embedded servlet, then the servlet is invoked and the response is generated. The response(html) is then sent back to the client ... this time a different path may be taken to reach the client.

Thanks
Rajesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic