Archive - Originally posted on "The Horse's Mouth" - 2005-10-28 10:44:14 - Graham Ellis
Check list - how to modify a Servlet and install it under a new name on your Tomcat server. This scheme assumes that you're working at a machine that has Java installed, but doesn't have its own copy of Tomcat and all the extras (why would it - it's your development machine and not the server!)
1. Get hold of the source code you need to modify
2. Get servlet-api.jar
3. export CLASSPATH=.:servlet-api.jar
4. make source code changes
5. Compile the modified source
6. Upload the class file to the webapps/xxxx/WEB-INF/classes directory
7. Add a servlet mapping to the web.xml file in WEB-INF
8. Stop and restart the webapp via the Tomcat manager