2/11/2004, update 10/27/2008
The ISE department provides a publically accessible web application server that supports servlets and JSPs, and I expect most of you to use apps-swe432 as your "target deployment computer". You can set up your own PC to support your servlets and JSPs at home. This will allow you to do most of your development and testing without having to go through GMU's computer systems. Please remember installing your servlets on apps-swer432 for grading is different and will take some time.
The following installation instructions will help you get and install Tomcat on your PC. Tomcat is the same servlet container that runs on apps-swe432.
| Directory | Contains |
| \swe432 | This is the root directory of the web application. All JSP and XHTML files are stored here. |
| \swe432\WEB-INF\classes | This directory is where servlet and utility classes are located. |
| \swe432\WEB-INF | This directory contains all resources related to the application that are not in the document root of the application. This is where your web application deployment descriptor is located. Note that the WEB-INF directory is not part of the public document. No files contained in this directory can be served directly to a client. |
| \swe432\WEB-INF\lib | This directory contains Java Archive files that the web application depends upon. For example, this is where you would place a JAR file that contained a JDBC driver. |
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
<!-- Define servlets that are included in the example application -->
<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
</web-app>
| Back to assignments page | Back to schedule page |