Running Servlet in Tomcat

Discussions

Web tier: servlets, JSP, Web frameworks: Running Servlet in Tomcat

  1. Running Servlet in Tomcat (1 messages)

    I have created a simple servlet which will display just "Hello World".

    The code is fine class file has been generated succesfully.

    i put that class file in webapps/myapps/web-inf/classes/atul/servlet folder

    myapp - install_dir

    now i am not able to run that file. i use the following url

    http://localhost:8080/myapps/atul/servlet/HelloWorld

    while doing beans i have put all my bean class file in the same folder i.e. web-inf/classes it is working fine.

    plz help me out
  2. Running Servlet in Tomcat[ Go to top ]

    Once you have the servlets in
    install_dir/webapps/ROOT/WEB-INF/classes/
    you will be able to access it with the following URL
    http://localhost/servlet/packagename.servlet

    raghu