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
The statechart diagrams and activity diagram are related in a sense that statechart diagram refers on object undergoing a transition process and an activity diagram refers on the f

Write a program using local variable Public void someMethod( ) { int x; //local variable System.out.println(x); // compile time error } - Constructor - Doesn't

The formula for resistors linked in parallel is a little more complex. Given two resistors along with resistances R1 and R2 linked in parallel the equivalent resistance is given th

a. Write an application for a video store. Place the names of 10 of your favorite movies in a combo box. Let the user select a movie to rent. Let the user select a movie to rent. D

class Writer extends Client {    // additional members    private boolean technical = false;    private boolean government = false;    private boolean international = false;    pri

short Java application that stores words in an Array or ArrayList.

Project Description: I want a lot of developers to develop modules The basic purpose of this project is to prepare a standard ERP Software Company will be divided into module

Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4

Explain in brief Java applet? It is a java program. It has been designed for transmitting Java code over the internet. It's automatically executed by Java-enabled W

list The Java Class Library? Java holds an extensive library of pre-written classes you can use in your programs. These classes are separated into groups known as packages. Th