Servlets and Apache's Tomcat

I've compiled a simple Servlet flawlessly. However, the tomcat documentation doesn't tell me where I need to place my servlet class so I can view it via a webbrowser. I'm running Tomcat 4.0.1. I tried to use tomcat's online docs (http://jakarta.apache.org) but they're "temporarily unavailable". Any help is greatly appreciated.


Comments

  • : I've compiled a simple Servlet flawlessly...
    :
    :
    Your class needs to be in yourapp/WEB-INF/classes.
    yourapps is the directory from server.xml

    If you haven't got the hang of server.xml yet try putting your servlet in TOMCAT_HOME/webapps/examples/WEB-INF/classes/

    Then from your browser use the URL
    http://localhost:8080/examples/servlet/yourServlet


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion