SERVLETS ARE NOW SUPPORTED THROUGH TOMCAT.
THE INFORMATION ON THIS PAGE IS OUTDATED.

Java Servlets Developers Kit 2.0

Date of last revision: 03/12/2007

JSDK is the Java Servlets Developers Kit, a Java package for using server-side Java on web pages.

Java Servlets Developers Kit 2.0 help index:


Availability


Preparation

Java Servlets Developers Kit 2.0 uses standard setup scripts. You must type:

setup jsdk

to use this application. If you want to run this version of the software even if other versions are available, use jsdk-2.0 instead of jsdk in your setup statement.

See "helpme setup" for information on finding out what versions are available or what to do if the setup statement does not work.


Running Java Servlets Developers Kit 2.0

Your Java code should import javax.servlet.* and javax.servlet.http.* and extend the HttpServlet class.

To have servlet support enabled on your Engineering web page, please send e-mail to support@engr.scu.edu. We hope to eventually automate this process, but for now it is easiest to do it manually.

When servlets are enabled for your account, the directory /webpages/<username>/servlets should exist. Place your servlet .class files there. Note that you cannot place regular HTML files in this directory.

DO NOT CREATE THE /webpages/<username>/servlets DIRECTORY YOURSELF. DOING SO WILL PREVENT SERVLET SUPPORT FROM BEING ENABLED ON YOUR ACCOUNT.

You can access your servlets through any of the student webservers in the directory servlets/<username>/<servletname>. Note that .class should NOT be included in <servletname>.

For example, the servlet /webpages/testuser/servlets/HelloWorldServlet.class can be accessed with http://students.engr.scu.edu/servlets/testuser/HelloWorldServlet as its URL.

Our webserver runs on Solaris and Linux. The default is Solaris. If you believe there's nothing wrong with your servlet file, and any of the following three links does not show "Hello World", please send e-mail to support@engr.scu.edu.

http://sol.students.engr.scu.edu/servlets/testuser/HelloWorldServlet

http://linux.students.engr.scu.edu/servlets/testuser/HelloWorldServlet

Do not create subdirectories for your servlets unless you are familiar with the Java package directive and understand how it interacts with the directory structure.


Notes


Other Information Resources


Other Topics of Interest