Develope a simple polling web application, JAVA Programming

Assignment Help:

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)


Related Discussions:- Develope a simple polling web application

Describe the ? operator in java langauge, Describe The ? operator in Java l...

Describe The ? operator in Java langauge? The conditional operator just works for assigning a value to a variable, using a value within a method invocation, or in a few other w

Using the Case Study supplied, The report: Your report must describe the re...

The report: Your report must describe the requirements of the application, outline the design of the solution, and provide a testing procedure to prove the application works. In yo

Code, pls telme source code for Padovan String

pls telme source code for Padovan String

Program that can read the obj file - wireframe model, We need an OpenGL - b...

We need an OpenGL - based visualisation of an OBJ-File that was created out of Maya3D. (important: we have to use OpenGL with Java - JOGL) In other words: we have an OBJ-file (a

Explain subclasses and polymorphism, Explain Subclasses and Polymorphism ? ...

Explain Subclasses and Polymorphism ? Car and Motorcycle are subclasses of MotorVehicle. If you instantiate a Car or a Motorcycle along with new, you can use in which object a

What is preferred organizational structure for organization, What is the pr...

What is the preferred organizational structure for the organization? Preferred Organizational Structure for organization is hierarchal. Where there is various departments inter

Write a programme to create a webpage that prints the name o, Write a progr...

Write a programme to create a webpage that prints the name of the STUDENT database in Wide Latin font and set the subtitle with description of the STUDENT to the screen. Set the pa

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

Java web programming, Write a JSP to display a table that contains factoria...

Write a JSP to display a table that contains factorials for the numbers from 0 to 10,

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