Ive written a servlet that was using JServ and now I upgrade to use Tomcat. What would I need to change?
Location: http://www.jguru.com/faq/view.jsp?EID=322048 Created: Feb 6, 2001 Modified: 2001-02-11 11:10:11.75 Author: Ryan Breidenbach (http://www.jguru.com/guru/viewbio.jsp?EID=45212) Question originally posed by Bapu Patil (http://www.jguru.com/guru/viewbio.jsp?EID=49941 Well, there isn’t any reason that your servlet itself would have any specific code in it that would not allow it to be deployed on Tomcat. By this, I mean the code in the init, service, deGet, etc. methods should be servlet-container independent. That being said, all you should have to do it register the new servlet with Tomcat. This requires modifing two files, server.xml and web.xml. The server.xml file is where you will register your web application (the context in which your servlet will operate). This would look something like this: