Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets/ Applets

 
Terry Stehle
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's move this to the servlets forum and see if you get some advice there. (Getting a good book is excellant advice).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic