Your account detail e-mail/letter
A basic knowledge of Java and Servlet technology
To test your account is correctly set up for servlets, open up a web browser and go to
http://188.8.131.52:8080 /mountpoint / test2020
webserver is the name for your web server
mountpoint is the name of the mount points for servlets.
Both of these are in the account detail letter.
This should bring up a page looking like:
If this does not happen, then contact support at support@Hostonjava.com
Home Directory/ html files . . WEB-INF/ classes/ class files . . lib/ jar files . . web.xml src/ source files . . logs/ log files .
In your account there will be a directory called 'WEB-INF' with a sub-directories 'classes' and 'lib'. The 'classes' directory contains the classes for the test page and also for any servlets that you generate, and the 'lib' directory contains any jar files.
The mapping between the URL's and particular servlets is controlled via the XML file 'web.xml'. For each servlet that is directly accessed via a URL there are the following lines (for the servlet 'test2020'):
< servlet > < servlet-name > test2020 < /servlet-name > < servlet-class > test2020 < /servlet-class > < /servlet > < servlet-mapping > < servlet-name > test2020 < /servlet-name > < url-pattern > /test2020 < /url-pattern > < /servlet-mapping >
An example version of the file, which runs the demo servlet is in the directory and it is recommended that you use this as a template.
You can either download servlet class or jar files into the 'classes' or 'lib' directory or by downloading the source files and compiling them on the server. It is quite common for people to develop their applications 'off-line' and then just download the completed files when ready.
Java 2 is installed on the server, and you can compile your servlets with javac.
For example the test servlet was compiled using
(in the src directory)
javac -d ../classes test2020.java
Once the class files are installed, the main source of debugging information are the logs from Apache / Tomcat. These log files are available to developers on the password protected web page:
If you require further assistance then contact support@Hostonjava.com
Using Servlets and MySQL
We hope that this page has made setting up and using servlets as painless as possible. If there is anything we have left out, or you have further comments, please send us an email at the usual support@Hostonjava.com
© Copyright 1997-2001 hostonjava.com. All rights reserved.