A Simple Web Application Using JSP

1. Install Tomcat

Install the Tomcat Web server on any computer you have access to. It can be installed under Windows or Linux, for example. You will have to make sure Java is installed first, but you should not need a physical network connection. So long as you can run a browser on the same computer as the Tomcat server, you should be able view and test your application by using a URL such as http://localhost:8080/appname.

2. Write an Application

Write an online quiz, deployed through your Tomcat server.

The quiz should involve a few multiple-choice questions, and use at least one JSP page to score the quiz (it may also include some static HTML).

A minimal solution would involve one static HTML page with all questions in a single form, each question followed by a list candidate solutions with accompanying radio-button input elements. Parameters identifying the selected solution for each question would be submitted to a JSP page, which would count the number of correct solutions, and print a score.

More advanced ideas that may earn extra credit:

  1. Rather than a static HTML page for the questions, you could use a JSP page and declare questions and answers separately from template HTML in constant Java arrays. Generate the HTML form of questions using a loop in the JSP page.
  2. The JSP scoring page could give a more detailed report about which questions were answered correctly and incorrectly, perhaps give correct solutions, etc.
Submit the HTML and JSP files for grading.