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
Java Programming 1. Write a program in Java to find the highest of any five numbers. How do you compile and execute this Java program? 2. Write a program to explain the Exce

What is the difference among using bind() and rebind() methods of Naming Class? Ans) Bind method (String name) binds the specified name to a remote object whereas rebind(String

can you tell me what the code for a 2d random java array using Recursive Division Maze Generation

Differentiate between Primitives and Objects Everything in Java is an "Object", as every class by default inherits from class "Object", except a few primitive data t

Please submit your answers     In this homework, we are going to generate Java Virtual Machine codes by processing the abstract syntax tree constructed from the parsing process

I want cyclos mobile banking USSD and IVR module Project Description: We already have a Cyclos mobile banking project deployed on our server with SMS banking module. The s

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,

This is a working program that shows election results from the infamous 2000 presidential election involving a lot of Floridians and 'hanging chads'. The program as written reads a

Write code in JavaScript to display the odd numbers among 20 to 100 using FOR statement? Note: No required to write whole HTML program. Just JavaScript code of require elemen

How can we define a computer screen? A computer screen is define as use to display output of computer to the user. Computer screen is consists of pixels.