To launch application,
-
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
-
In the E:\CPSC\apache-tomcat-7.0.54\webapps\WEB-INF\ subdirectory, create web.xml with following:
.........
TomcatServletExample mypkg.ServletExample.........
TomcatServletExample -
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.