File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Servlets/ Applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Servlets/ Applets" Watch "Servlets/ Applets" New topic

Servlets/ Applets

Terry Stehle

Joined: Mar 24, 2001
Posts: 24
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

Joined: Mar 13, 2001
Posts: 7
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"

Joined: Sep 29, 2000
Posts: 8521
Let's move this to the servlets forum and see if you get some advice there. (Getting a good book is excellant advice).

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: Servlets/ Applets
It's not a secret anymore!