Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 911 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 911 Bytes

TomcatServletExample

To launch application,

  1. Deploy .class files to E:\CPSC\apache-tomcat-7.0.54\webapps\TomcatServletExample\WEB-INF\classes\mypkg or [path-to-directory]\webapps\TomcatServletExample\WEB-INF\classes\mypkg

  2. In the E:\CPSC\apache-tomcat-7.0.54\webapps\WEB-INF\ subdirectory, create web.xml with following:

    .........

    TomcatServletExample mypkg.ServletExample

    .........

    TomcatServletExample
  3. Navigate to http://localhost:8080/TomcatServletExample

NOTE: %CATALINA_HOME% environment variable must be set up.

Go to %CATALINA_HOME%\bin and type startup in command prompt to initiate server.

Do not exit out of window that opens.