You are required to develop a dynamic web page for Self test of Java using HTML and Servlet technology.
Requirements:
You are required to develop a web page named “MCQs.html”. This web page must contain five MCQs (Multiple Choice Questions) having four options each. The web page must also contain two buttons “Check Result” and “Reset”.
The user has to select one option for each MCQ and then click “Check Result” button.
When user clicks “Check Result” button then Servlet named “SelfTest.java” process HTML form data, do some processing on that data and send the output of user result back to client as given below:
Question 1: Correct/incorrect/unanswered
Question 2: Correct/incorrect/unanswered
Question 3: Correct/incorrect/unanswered
Question 4: Correct/incorrect/unanswered
Question 5: Correct/incorrect/unanswered
Answered questions: ____
Un-answered questions:____
Correct questions: ____
Incorrect questions: ___
Your Total score:_____
Requirements:
- Developing a dynamic web page
- Creating a Servlet to process HTML form data
- Reading HTML form data through servlet technology
- Process HTML form data and send the response back to client
You are required to develop a web page named “MCQs.html”. This web page must contain five MCQs (Multiple Choice Questions) having four options each. The web page must also contain two buttons “Check Result” and “Reset”.
The user has to select one option for each MCQ and then click “Check Result” button.
When user clicks “Check Result” button then Servlet named “SelfTest.java” process HTML form data, do some processing on that data and send the output of user result back to client as given below:
Question 1: Correct/incorrect/unanswered
Question 2: Correct/incorrect/unanswered
Question 3: Correct/incorrect/unanswered
Question 4: Correct/incorrect/unanswered
Question 5: Correct/incorrect/unanswered
Answered questions: ____
Un-answered questions:____
Correct questions: ____
Incorrect questions: ___
Your Total score:_____
Last edited:
