This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
As everyone who has ever read my messages probably already know that Im currently working on a chess program. Im trying to create a chess program that two people can play online. This is a big project. And I may never complete it. But I don't give up easily. My programming experience is from practice only. What I'm trying to understand is servlets. What I believe is that they are programs that run on the server. The applet I guess is what runs on the clients computer, and is the graphical user interface of the game. What Im wondering is do I need a servlet for every game started. Or am I suppose to create a servlet to handle all the games at once. Which would seem almost impossible. Also do most web host support servlets. Anyways I would appriate any help on this subject. Thanks Terry Stehle
Hi, Well if you don't have your own server, then you are going to ahve to host it on a server that supports java. Servlets are a particular implementation of server responses, that catch the server requests from the host server, and process them via java code. There are plenty of books on servlets so you might want to read one or two to give you an idea of what you are trying to do. The servlet implementation of the chess game will be similar to a chat servlet app. You should try and mold it around that. If you leave the server load issues with a third party then you can concentrate on how you want to implement your server code. So 1: find a servlet book. 2: check how the book implements a chat app. Most of them use chat app as an example. Good Luck