aspose file tools*
The moose likes Servlets and the fly likes Servlet HTTP protocol Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet HTTP protocol" Watch "Servlet HTTP protocol" New topic
Author

Servlet HTTP protocol

raj joe
Ranch Hand

Joined: Mar 17, 2005
Posts: 99
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

Joined: Nov 06, 2000
Posts: 1510
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


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Rajesh Agarwal
Ranch Hand

Joined: Aug 01, 2005
Posts: 79
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet HTTP protocol