JSP / Java Servlets

Note: JSP is NOT available on some types of account. These include Windows 2000, reseller, multi domain and Myqth accounts.
If you are in any doubt please see the features listed on our web site for the hosting plan you have ordered.
To get JSP installed please contact technical support.

Java Servlets support can be installed on any of our Linux hosting plans (apart from reseller plans) on request.

Java will not work until your domain name is resolving to our server.
This means that you can not use servlets under the temporary address we provide.

The container is Tomcat version 4.1.12

The system classpath is not available to users.  Any additional library
JARs must be installed in the context classpath as below.

In order to use Servlets (not JSPs unless you call other classes):

1. You must create a directory WEB-INF inside your public_html folder.
(The name must be capitalised as shown.)
2. Inside this you must place a web.xml file.  Please see
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/web.xml.txt for
an example.
3. If you wish to use library JARs (*.jar files), you must create a lib
directory inside WEB-INF and place all the JARs in this folder.
4. For your custom classes (compiled .class files only): these must be
put inside a classes directory in WEB-INF.  Where necessary the
appropriate package directories must be created; for example if "package
org.mycompany.servlet;" is your package statement classes must reside in
public_html/WEB-INF/classes/org/mycompany/servlet.

You should end up with something similar to below:

Public_html
  |
  |--- classes
  |       |---- MyServlet.class
  |       `---- org
  |              `--- mycompany
  |                       `----- MyServlet2.class
  |--- lib
  |     `something.jar
  `--- web.xml