Home > Web hosting - Linux. > Using Java servlets and JSP on the Linux web hosting platform.

Using Java servlets and JSP on the Linux web hosting platform.

Java Servlets and JSP

As of December 2010 the current version is Tomcat 5.5.23 supporting Servlet 2.3 and JSP 1.2 standards as published by Sun.


To purchase Tomcat hosting, and use on your site, please send an email to [email protected] with the following information :-

Hosting will be setup within 24 hours of your request.


A web application directory will be created for you as ‘ejava’, in your home directory, and used to store HTML, JSP and class files. These maybe uploaded in the usual way, using ftp or the Pulsant shell server.

The basic directory structure is as follows:

ejava/WEB-INF/web.xml Tomcat configuration file
ejava/WEB-INF/classes/* Servlet and library .class files
ejava/WEB-INF/lib/* Servlet and library .jar files
ejava/* Static or JSP pages

The full directory layout and configuration file format is described in the Tomcat Application Developer’s Guide.


Your uploaded Java files will be accessible using the following URLs (substitute <your domain> and <your user name> as appropriate).

http://<your domain>/ejava/<your user name>/servlet/*
http://<your domain>/ejava/<your user name>/*.jsp


Standard libraries on the default classpath include the Servlet library, Xerces, PostgreSQL and MySQL drivers. When compiling class files, it may be necessary to copy these on to your local classpath i.e. take a copy of the Jar file(s) from the Pulsant Library and upload to