Originally posted by B Crosthwaite: I dont know. How would i find out?
It will be one of the first statements in the file, beginning with package.
Without it, your class is relegated to the default package which is problematic in web applications. It can sometimes be made to work, but it can also cause weird and difficult to diagnose problems. All your classes should be declared in a package other than the default.
No i dont.
Then you need to learn some more basic Java, such as packages, before diving off into servlets and more advanced concepts.
When i think of packages i think of javax.servlet and javax.servlet.http etc
Those are examples of Java packages. You need to learn how to create your own.
Once you've done that, then you'll know what to put into the <servlet-class> element. For example, one of my servlets could be declared as: Note that the declaration contains the fully-qualified class name of the servlet, including its package. [ October 27, 2008: Message edited by: Bear Bibeault ]