CSSE-230, Setting-up the Web Server
Please install Tomcat on your laptop.
Here is information on how to install Tomcat:
- I believe you have to be localmgr to install tomcat.
- Install it by selecting "32-bit/64-bit Windows Service
Installer" from the following web-site: http://tomcat.apache.org/download-80.cgi
I accepted the defaults.
- Open Control Panel|System|Advanced Tab|Environment Variables and
add the JAVA_HOME variable. In my set-up, the Java SDK is located in
C:\Program Files\Java\jdk1.8.0_25
- There are several ways in which to start up the server, one of
them is as follows: Open the bin folder of the Tomcat
6.0 folder and run the tomcat6.exe executable or the
startup.bat file.
- In your favorite web-browser, open http://localhost:8080
and the server homepage should start up.
- The page you see is the index.jsp page in: C:\Program
Files\Apache Software Foundation\Tomcat 8.0\webapps\ROOT
- I added the form.html file to that "ROOT" folder.
- Open the "WEB-INF" folder and create a "classes" folder in
it. That "classes" folder will have to contain the
"RoseBookServlet.class" file.
- You need to modify the "web.xml" file so that it looks like: this
- You invoke the "form.html" file by this URL: http://localhost:8080/form.html
assuming your server is running.