• Post Reply Bookmark Topic Watch Topic
  • New Topic

Simple Voting Application

 
Eamonn Doherty
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all! I'm looking to develop a simple voting application for my web site. Does anyone know off an example that I could look at? I'm learning JSP at the moment, but I'm not sure how to store the information (votes). Can anyone suggest a method? I'm not that familiar with databases either.
Thank you, Eamonn Doherty.
 
Brian Glodde
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can store the results in a properties file, which would be a quick solution that will get you started. If you are anticipating high volume, then I would definitely recommend a database, rather than flat file.
Properties javadoc: http://java.sun.com/products/jdk/1.2/docs/api/java/util/Properties.html
 
Eamonn Doherty
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the quick reply, I'll check that out! If I was to use a database, what one would you recommend? Are there any free ones I can use?
Eamonn Doherty.
 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd recommend MySQL if you're looking for a good free relational database. If I were to make a poll application, I'd use a form on the front end with a servlet on the back end and let the servlet do all the processing. If you put too much code in a jsp, you might have difficulty debugging it.
 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eamonn Doherty:
Hi all! I'm looking to develop a simple voting application for my web site. Does anyone know off an example that I could look at? I'm learning JSP at the moment, but I'm not sure how to store the information (votes). Can anyone suggest a method? I'm not that familiar with databases either.
Thank you, Eamonn Doherty.

Go On with Sean Cassey, its the best solution for your requirement...
Good Luck
Malhar
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!