• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet processing  RSS feed

 
Kalyan Anand
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a request is sent to a Http servlet from the client's web browser which class(es) actually take the request before delegating and invoking the actual servlet ?
 
Satya Maheshwari
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on the web-server. Here is what I found for Tomcat:

 
sridhar ponnusamy
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thankz sathya..am also looking for it

 
Sam Aran
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't.

Don't look for this.

This is not needed to be known by you. At all. Ever.

You are falling into the implementation trap. You may find which classes call this on Tomcat, on X, on Y, on Z, etc. But what about Tomcat 5 vs. 6? What about X1 vs X2.5?

The basics of what you need to know for your container is what servlet specification it implements and that is places elements found in the web.xml file in the appropriate order. You can write simple test cases to verify this.

It doesn't matter what calls the Servlet classes you specify, as long as you verify that they DO GET CALLED. You are trying to find out increasingly irrelevant information. There is a reason you have a container in the first place, so you don't have to worry about all this start up code and threading...you just worry that your code will function properly once you rest easy that it is indeed being called.
 
Yellaiah Gopireddy
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi santhosh,

Lot of ground work involved in transforming your data from server to client. All this implementation is with servers(web servers/app servers). This may vary from one server to another. If you want to get it in full details you will have to go through server APIs which is not really required to work with servlets.

-YGR
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!