Servlet Configuration  «Prev  Next»

Exercise: Testing and administering the Java Web Server

Test the Java Web Server


Objective: Test the Java Web Server.

Exercise scoring

This exercise is worth 1 point. The exercise is auto-scored, which means that all you have to do to receive credit for it is click the Submit button below.

Instructions


In this exercise you will configure the Java Web Server.
  1. Start the Java Web Server by opening an MS-DOS prompt, changing to the bin subdirectory of your Java Web Server directory, then typing:
    httpd
  2. Do not close the MS-DOS prompt.
  3. Bring up a browser and enter the URL to the sample HTML file:
    http://localhost:8080

  4. You should see the file in the browser.
  5. Next, enter the URL to the sample servlet, SimpleServlet:
    http://localhost:8080/servlet/SimpleServlet

Be sure that the JSDK server is not running when you load this page. You want to know that it came from the JWS.
Do not let the folder name, servlets, confuse you. The URL path uses the word servlet.