i compiled 2 servlets and copied the class files under C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\classes ...suppose the two class files are s1.class and s2.class... i got the output for s1 by making changes in web.xml(modifying url and servlet class) ....now my question is how can i execute s2?.....can i actually run all servlets without having to worry about the mapping?
Author and all-around good cowpoke
posted 8 years ago
can i actually run all servlets without having to worry about the mapping?
If you are going to work with servlets you need to learn all about the use of the web.xml deployment descriptor. Shortcuts will eventually get you in trouble.