How to setup Servlets on our system
To setup servlet, you need to configure servlet into the file web.xml
web.xml file location
/var/www/html/WEB-INF/ directory
www root directory or webapps:/var/www/htm
Classes directory location
/var/www/html/WEB-INF/Classes/
There you will need to upload your Java class file.
Default url-mapping for servlet is: /servlet/*
To check servlet in your browser: www.mydomain.net/servlet/HelloWorld
Servlets in other directories
If you have defined additional servlets that are beside from the default
/servlet/ dispository you have to contact us with the names of those servlets
so we can map them to your tomcat in order to be correctly deployed.
How do I add a servlet mapping?
You have to cantact us and we will map your folder with ajp13 connector
Jsp files location
Upload anywhere in /var/www/html
DOUBLE CHECK:
Double Check that that url-mapping for servlers is entered corectly in
web.xml
Double Check that Java class file is uploaded in the corect place.
Without these two things your servlet will not work.
|