You need to modify a few files to get your servlet up and running:
Create your servlet source with, at the very least, a
More importantly put it where your servlet engine is expecting it.
Given a servlet engine context of
/my-space which has a
/the/path/to/my-space then you'll want
to put your code in
with appropriate modifications for the class' package.
If you've created your servlet engine context correctly you need to nothing more.
copying the example in the Tomcat distribution! For example, to
/my-space/HWS instead of the more cumbersome
/my-space/com.lunanbay.HellowWorldServletyou might add
The format of
web.xml means you have to
put all instances of
Some things to do with servlets.
|File Uploading||Raw and Parsed File Uploading|
Two examples of servlets doing file uploads:
Copyright 2002 Lunanbay Limited. All rights reserved.