File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes deployment descriptor 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 "deployment descriptor" Watch "deployment descriptor" New topic

deployment descriptor

Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Hi, I have a question about the deployment descriptor. Say,
<servlet name>this</servlet name>
<servlet class>thisServlet.class</servlet class>
I don't understand what this does. Do we now call "http://localhost:8080/servlet/this"
instead of
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
Essentially, yes - that set of tags establishes a name that the server will use and relates it to a servlet class. You should put the servlet class in a package to avoid confusion. Like I keep saying, download the Java Servlet API from and study it.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Check out the bottom of this thread

p.s. to William. The API is not the easiest thing to find things in sometimes. And I have not been able to find how to write XML deploy descriptors in the servlet API. Could you tell *me* the page it's on?
I agree. Here's the link:
subject: deployment descriptor
jQuery in Action, 3rd edition