JSDK is the Java Servlets Developers Kit, a Java package for using server-side Java on web pages.
Java Servlets Developers Kit 2.0 uses standard setup scripts. You must type:
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
See "helpme setup" for
information on finding out what versions are available or
what to do if the
setup statement does not
Your Java code should import
javax.servlet.http.* and extend
To have servlet support enabled on your Engineering web page, please send e-mail to email@example.com. 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
should exist. Place your servlet
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
.class should NOT
be included in
For example, the servlet
can be accessed with
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 firstname.lastname@example.org.
Do not create subdirectories for your servlets unless you are familiar with
package directive and understand how it interacts with
the directory structure.
/opt/apache/shared/logs. Look for files with "jserv" or the webserver name as part of the filename. Be sure to check all relevant log files, because sometimes messages show up in different files than you would expect. Unfortunately, it can be a bit confusing to figure out which log files are relevant--our webserver setup has grown greatly in complexity.