The Software Engineering group has cooperated with the IT&E Computing Resources group to provide a publically accessible web site that supports servlets and JSPs, and I expect most of you to use Hermes as your "target distribution 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 Hermes 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 Hermes.
|\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.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <servlet> <servlet-name>YourServletName (for example: hello)</servlet-name> <servlet-class>YourServletClass (for example: HelloServlet)</servlet-class> </servlet> <servlet-mapping> <servlet-name>YourServletName (for example: hello)</servlet-name> <url-pattern>YourURLMapping (for example: hello)/hello</url-pattern> </servlet-mapping> </web-app>
|Back to schedule page|
Thanks in part to Yanyan Zhu, Spring 2009