How to setup servlets?
Servlet Set Up – READ CAREFULLY To setup servlet, you need to configure servlet into the file web.xml which needs to be placed in /var/www/html/WEB-INF directory. www root directory or webapps:/var/www/html Classes directory located in: /var/www/html/WEB-INF/Classes/ There you will need to upload your Java class file. Our default url-mapping for servlet is: /servlet/* To check servlet in your browser: www.mydomain.net/servlet/HelloWorld Jsp Files – Upload anywhere in /var/www/html DOUBLE CHECK: Double Check that that url-mapping for servlers is entered correctly in web.xml Double Check that Java class file is uploaded in the correct place. Without these two things your servlet will not work. Viewing Tomcat Logs By default all the logging activity will be placed within the /var/log/ directory of your application. If a telnet shell is enabled on your account then ‘tailing’ the logs can provide a powerful tool in debugging your web application. Viewing the logs is recommended when you sus
Servlet Set Up – READ CAREFULLY To setup servlet, you need to configure servlet into the file web.xml which needs to be placed in /var/www/html/WEB-INF directory. www root directory or webapps:/var/www/html Classes directory located in: /var/www/html/WEB-INF/Classes/ There you will need to upload your Java class file. Our default url-mapping for servlet is: /servlet/* To check servlet in your browser: www.mydomain.net/servlet/HelloWorld Jsp Files – Upload anywhere in /var/www/html DOUBLE CHECK: Double Check that that url-mapping for servlers is entered correctly in web.xml Double Check that Java class file is uploaded in the correct place. Without these two things your servlet will not work. Viewing Tomcat Logs By default all the logging activity will be placed within the /var/log/ directory of your application. If a telnet shell is enabled on your account then ‘tailing’ the logs can provide a powerful tool in debugging your web application. Viewing the logs is recommended when you sus