Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Ive written a servlet that was using JServ and now I upgrade to use Tomcat. What would I need to change?

0
Posted

Ive written a servlet that was using JServ and now I upgrade to use Tomcat. What would I need to change?

0

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:

-->

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123