Develope a simple polling web application, JAVA Programming

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

  • 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.
  • 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).
  • 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.
  • Alternatively if the client has 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.
  • 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.
  • 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:

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

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

Posted Date: 3/1/2013 5:32:16 AM | Location : United States







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

Write discussion on Develope a simple polling web application
Your posts are moderated
Related Questions
You should override the hashCode() and equals() functions from the Object class. The default implementation of the hashcode() and equals(), which are inherited from the java.

Project Description: A java application is required with the subsequent features 1. Ability to use GSM Modem (and/or Mobile phones) or SMPP to send and receive SMS messages

Prepare Neo4j database of airline airports and routes. Implement Dijkstra algorithm to evaluate shortest path for flights with available seats. I'm need a developer with Neo4j/g

Both Java and C++ use same syntax and are Object Oriented, but there are several differences between Java and C++:   1.    Java does not use pointers. Pointers are inherently

A portal is a service or a Web site that gives broad range of services and resources like e-mail, forums, search engines, weather information, news, on-line shopping, stock quotes.

Overview Demonstrate your knowledge of JavaScript and ColdFusion by implementing the following functionality: Contact form • The following validation error message shou

Question: (a) Java does not support multiple inheritance but does provide the concept of ‘interface'. Explain how interfaces can help a programmer to implement multiple inheri

PART1: Write a class with the header public class OrderedPair > implements Comparable > instance variables private Key x private Key y constructor publicOrd

How to initialize array in java ? Individual elements of an array are referenced through the array name and through an integer that represents their position in the array. The

CHEMISTRY PROBLEMS