• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

servlet registration

 
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.
 
author
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
 
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic