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

Servlet, how to request one servlet to another by passing value

how to request one servlet to another by passing value

What are application softwares, What are application softwares? List down t...

What are application softwares? List down the names of three application software's. Definition: Application Software are in which software then can interact directory along

Extended eucleadian algorithm, inplementation of extended eucleadian algor...

inplementation of extended eucleadian algorithm in some cases

Implement design in the java programming language, Implement your design in...

Implement your design in the Java programming language. Your main program file must be called MIPSim.java. Your simulator should implement the MIPS instruction set with the rest

What is the difference between inner class and nested class, What is the di...

What is the difference between inner class and nested class? When a class is explained within a scope od another class, then it becomes inner class. If the access modifier o

Polymorphism carbonfootprint interface program, (CarbonFootprint Interface:...

(CarbonFootprint Interface: Polymorphism) Using interfaces, as you learned in this chapter, you can specify similar behaviors for possibly disparate classes. Governments and compan

How many jsp scripting elements , How many JSP scripting elements and what ...

How many JSP scripting elements and what are they? Ans) Three scripting language elements are there: a)      declarations, b)      scriptlets, c)       expressions.

Write a program calculates the resistance of group resistors, The formula f...

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

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