• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to store in a database  RSS feed

 
Teeyes Siva
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a tetris game as an applet.
Once the game is over, the score is diplayed. Now I want this score to be stored in a database automatically. Is this possible?
if so, suggest me the code.
Thnks
 
Omar IRAQI
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi sivvaa ,
There are plenty of solutions :
1-Open a JDBC connection to the database from the applet directly. The applet should be SIGNED.
2-Run a servlet at server side and have this servlet open a JDBC connection to the database. The applet would pass the parameter to the servlet through HTTP. Upon receiving the parameter, the servlet would insert it to the database through JDBC.
3-multi-tier solution with RMI or CORBA broker between the servlet and the database.
Regards
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sivvaa,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!