This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes How Servlet Container locates servlet ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "How Servlet Container locates servlet ?" Watch "How Servlet Container locates servlet ?" New topic
Author

How Servlet Container locates servlet ?

Raghu Mat
Greenhorn

Joined: Feb 19, 2004
Posts: 5
How Servlet Container locates servlet, in case multiple servlets with different names are present. please give me details.
Regards
Raghu.
venkat naidu
Greenhorn

Joined: Jul 02, 2004
Posts: 2
Hi,

whenever u r going to run any servlet first u should place that class file in WEB-INF\classes folder irrespective of server this is the common tree in every server. We will register the servlet class name in web.xml file, there servlet container searched for realted class file in classes folder and their respective package folder like this container knows the servlet class file.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
you might get better responses if you use a form of English that people can actually understand.
Punctuation, proper spelling (you are instead of "u r", as soon as I see things like that I stop reading and many with me), proper placement of questions (this is definitely NOT a JSP question), etc. etc. all help too.

As to your question, it's defined in the web application configuration contained in the relevant web.xml file.


42
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56204
    
  13

Moving to the Servlets forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12269
    
    1
For the true and correct details of the servlet API - why not read the servlet API?
From this Sun web site you can download the authentic material.
Bill
(I agree with Jeroen - you are not being charged by the character here - why not write complete sentences? Think of it as practice for your next job application.)


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How Servlet Container locates servlet ?
 
Similar Threads
How Servlet Container creates an instance of your Servlet
Internal functionality of getServletContext()
About remote client
Web App/Container Relationship
How a servlet Container differ from web container?