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
Write a program that uses one of the Map classes to implement a contact list. Contact information should include first name, last name, a phone number and an email address. The lis

Question : a) There are up to 14 different built-in groups that might be located by default in the Builtin container including "Account Operators", "Incoming Forest Trust Bui

What is the difference among ForwardAction and IncludeAction? Ans) The difference is that you require to use the IncludeAction only if the action is going to be contained by ano

The fancy new French restaurant La Food is very popular for its authentic cuisine and high prices. This restaurant does not take reservations. To help improve the efficiency of the

Problem : Compiler Design - Limit the loops Rajni is a newbie to the programming and while learning the programming language he came to know the following rules: ???• Each program

What is the role of fonts in java explain with example? You've already seen one instance of drawing text in the HelloWorldApplet program of the last chapter. You call the drawS

Explain Data Updates issues in data management? DATA UPDATES: Old titles must be removed regularly Data changes every time Prices change Transportation / shipping cost change

Use of WebLogic Platform in Project: Technologies Tools: Weblogic 8.1, Solaris 9, MQ Series 6.0, iplanet 6.1, Mercury Test Director. Project Overview: Wellington Manag

Modify both of the above clients (to write separate clients) to extract the exchange rate from a live web service that performs currency conversion. You can choose a Java or a .NET

Create a thread in either a C or a Java program and run it. The thread should read a keyboard value "x" and exit from the code, or it can also use an "ESC" to exit. That is, the t