Getting Started

Import CS320_Jetty.zip and CS320_Lab04.zip into Eclipse (Import → General → Existing Projects into Workspace → Archive File).

You should see two new projects in your workspace, CS320_Jetty and CS320_Lab04.

Your Task

Implement the GuessingGameController class so that it implements a guessing game where the user thinks of a number between 1 and 100 and the web application tries to guess it.

See GuessingGame.java, _view/guessingGame.jsp, and GuessingGameServlet.java to understand how the model, view, and servlet classes work.

To run the webapp, run Main.java as a Java application and enter the following URL in your web browser:

http://localhost:8081/lab04/guessingGame

If you have time, implement JUnit tests to test the GuessingGame and GuessingGameController classes.