Develop a simple polling web application , JAVA Programming

Develop a simple polling (voting) web application according to the following specifications:

1. Initially a page should be presented to the user where he can enter his/her name and press a button to proceed to the polling.

2. After pressing the "Proceed" button on the initial page, another page should appear with a list of available polls and the user can select one of them and press a button called "Participate" to start giving his/her vote. The list of polls should be extracted from a simple database (see the database specifications below).

3. If the client (i.e. the clients browser) have already participated in the selected poll, a page with the current poll results (again extracted from the database) should appear along with a message like "Sorry, , you have already voted for this poll" at the top of the page.

4. Alternatively if the client have not yet voted for the selected poll, the polls options (from the database) should be listed and the user can select one of the options and press a "Vote" button.

5. After pressing the "Vote" button, the poll database should be updated and the results page should be displayed along with a " Thank you for voting" message at the top of the page.

6. The results page should contain the question of the selected poll along with the options and the percentage of each option in a tabular format.

Note that you need to use sessions to store the users name and also cookies to remember if the client has already voted or note.
The database should contain the following two tables only:

1. Polls table:  poll number (int), poll name (string), poll question (string)

2. Options table: option (string), number of votes (int), poll number (int)

Posted Date: 2/16/2013 6:11:46 AM | Location : United States







Related Discussions:- Develop a simple polling web application , Assignment Help, Ask Question on Develop a simple polling web application , Get Answer, Expert's Help, Develop a simple polling web application Discussions

Write discussion on Develop a simple polling web application
Your posts are moderated
Related Questions
Complete Back end and Front End Development Project Description: This work is a part of ongoing project. The need is to prepare and integrate the web part of this project.

Why are JSP pages the preferred API for creating a web-based client program? Because no plug-ins or security policy files are required on the client systems (applet does). Also,

How to Construct objects with new operator? class Car { String licensePlate; // e.g. "New York 543 A23" double speed; // in kilometers per hour double maxSpeed;

A servey is done in M.P. by forest department finding different types of species of birds the servey data covered four major cities indore,Bhopal,Gwalior,vidhisa. The result they o

A Scrollbar is a Component while Scroll Panel is a Container. A Scroll Panel handles its own events and performs its own scrolling.

Action mapping having all the deployment information for a particular Action bean. This class is to verify where the results of the Action will be sent once its processing is done.

Project Description: Develop an android service app that will run on the background. The app has to get the users location (longitude and latitude) every 5 minutes or when th

Java SDK is not so comfortable with people used to command line interpreter. IDEs contain compilers, editors, debugging facilities, drag and drop methods, etc. This compiler strive

Explain what is FontMetrics in Java? No word wrapping is completed when you draw a string in an applet, even if you embed newlines in the string along with \n. If you expect th

In this assignment, you are provided with an interface that contains a generic type. You are asked to create two classes that implement this interface. A. The Sequenced Interfac