please i want to know how to create dynamic web page for online test using jsp..
Posts: 6,843
Threads: 4
Joined: Mar 2015
jsp code for aptitude test
In this post we’ll cover the steps in creating an interactive online quiz application using JSP Servlet technology. We’ll look at how to parse XML files, how to handle sessions and keep track of user interaction using session management.
Creating an online quiz application
Below are some of the snapshots of the end application:
Registration Page
Before taking a quiz, a user have to first register and login. To register one can directly click on the register menu or a page link to registration page is provided on the login page to create an account.
Registration-Page-online-quiz--application
Login Page
When a user clicks, an exam user is directly redirected to the login page, if the user is not logged in.
Login Page
User Home Page
Home page is the landing page of the application from where a user can take any quiz by clicking on the quiz. On the home page, if the user is logged in his name is also shown and a logout page link is provided to logout from the application.
Home Page
Quiz Screens
On starting a quiz, a user is presented with the first question of the quiz with the next and finish button. Note that the previous button is not shown when the user is on first question and next button is not shown when the user is in the last question.
Quiz Screen
Quiz Screen
Quiz Result
After clicking on the finish button the user is presented with exam results, showing the name of quiz; time when the quiz was started and the number of questions that the user answered correctly.
Quiz Result
How This Quiz Application Works?
Well, it works as you expect it to work. To take a quiz, a user must be logged in. If the user is not logged in, the user will automatically be redirected to the login page, where the user can login. If the user is not already registered to the application, he has to create an account first. After successfully logging in to the application, the user can take any of the quiz by clicking on it. Now, the user will be presented with the first question of the quiz. To move through the quiz questions, the user is provided with the next and previous buttons. The quiz can be finished at any time by clicking on the finish button.