Howdy, Stranger!

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

Categories

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

  • kevingkeving Member Posts: 20
    : 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


  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    _________ \ http://forcoder.org \ free ebooks and video tutorials about ( C#, PL/SQL, Ruby, Python, Visual Basic, Assembly, Objective-C, PHP, C++, Visual Basic .NET, Perl, JavaScript, R, C, Java, Go, Scratch, Swift, MATLAB, Delphi LabVIEW, Prolog, Rust, Bash, COBOL, Awk, Hack, Crystal, D, ABAP, ML, Fortran, Clojure, SAS, Transact-SQL, Julia, Apex, Alice, FoxPro, Erlang, F#, VBScript, Dart, Lisp, Ada, Lua, Logo, Kotlin, Scheme, Scala ) _

Sign In or Register to comment.