e-Science e-Business e-Government and their Technologies
Homework 3: Servlet Programming
-
Download and install the Tomcat Web server on any computer
you have access to. You may follow the detailed instructions
given in the lectures.
-
Experiment with starting and stopping the server.
-
Familiarize yourself with the contents of the default
home page that comes with your server
(e.g. http://localhost:8080).
In particular explore:
-
Source and operation of examples on the
"Servlet Examples" page.
-
Source and operation of examples on the
"JSP Examples" page.
-
Operation of the "Tomcat Manager" page.
-
Write and deploy a simple Web application consisting
of an HTML page with a form, and a Java Servlet that
processes data input through the form. For this first
example, have the form prompt to input some numbers,
and have the servlet display the results of doing some
simple arithmetic on those numbers.
-
For grading, submit the entire contents of your Web
application directory as a ZIP file or (preferably) a WAR file.
- Mail your code to
Bryan Carpenter with
a due date of Sunday February 22. If you
need clarification, or encounter any significant problems
please contact me!