jQuery in Action, 3rd edition
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet HTTP protocol" Watch "Servlet HTTP protocol" New topic

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

So much trouble in the world -- Bob Marley
Rajesh Agarwal
Ranch Hand

Joined: Aug 01, 2005
Posts: 79

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.

I agree. Here's the link: http://aspose.com/file-tools
subject: Servlet HTTP protocol
It's not a secret anymore!