• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet registration

 
Peter Masreblta
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following are from http://www.javaranch.com/ubb/Forum7/HTML/006663.html
The typical deployment of a servlet involves which of the following:
a) The servlet's class file is placed in one of the directories in the CLASSPATH of the Servlet Engine
b) The servlet is serialized and placed in the root directory of the Servlet Engine.
c) The servlet must be registered with the Servlet Engine before it can be found by a URL used in a web browser.
d) The Servlet Engine must be stopped and then restarted before the new servlet can be loaded.
My question is why c is correct?
There is no such rule in the specs that a servlet must be registered with the Servlet Engine before it can be found by a URL used in a web browser.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you do have to provide a servlet entry and a URL mapping in web.xml. I guess that qualifies as "registered".
- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic