Develop a simple polling web application , JAVA Programming

Assignment Help:

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)


Related Discussions:- Develop a simple polling web application

Online doctor, can you explain me the er diagram for the online doctor syst...

can you explain me the er diagram for the online doctor system

How to catch multiple exceptions explain with example, How to catch multipl...

How to catch multiple exceptions explain with example? If multiple blocks match the exception type, the first block in which matches the kinds of the exception catches it. pub

K-means clustering, i) Set the number of data points to 20 and the number o...

i) Set the number of data points to 20 and the number of clusters to 2. Check box Show History. Click on Initialize. Click on Start. Click on Step . Observe which points ch

Pseudocode, Create an application for an animal-fur trimming service. The b...

Create an application for an animal-fur trimming service. The business is open 15 weeks of the year, from April through July. The fee for a small animal (under 6 pounds) is $100, a

Write a program of student using a class, Write a program of student Using ...

Write a program of student Using a Class Objects of a class are always created on heap using "new" operator followed by constructor Student s = new Student ( ); // no po

What is a proxy, A proxy is an object that is formed after applying advice ...

A proxy is an object that is formed after applying advice to a target object. When you think of client objects the target object and the proxy object are the similar.

Online Music Store, Online music store that stores information about song, ...

Online music store that stores information about song, artist, album, customer, playlist. Also all necessary diagrams - use case, uml, erd

Array, how do you access a value of an array?

how do you access a value of an array?

Decision structures, for $9.95 per month, 10 hours of access are provided.A...

for $9.95 per month, 10 hours of access are provided.Additional hours are $2.00 per hour

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd