Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 365
  • Last Modified:

Java Servlet and Applet

I am looking at creating a set of programs where people can play card games against each other online. This would be done via a web page where the game applet is loaded via a button. The button would then start the applet which would connect to the servlet. If the servlet is not up, the servlet would be started up.

The servlet basically acts as a referee and sends messages on what to display. The servlet would record results to a file on it's local computer.

The applets would display information and allow moves and commands to be processed.

Questions:

1. Is this approach possible?
2. Is there any special considerations that i need to consider?
3. I would like as part of this solution, basic html code for the web page, base java applet code and servlet code.
4. Instructions on how to install whatever software is needed
5 Assistance in getting the base code up and running.

Thanks,
Andrew
0
andrewmchorney
Asked:
andrewmchorney
1 Solution
 
goldwarlockCommented:
Approach is rather good
Use IE5.0> and JRun/JSDK2.0 on server side
HTML code and simple examples of code han be found on www.javasoft.com
Installation is simple and can be done by online/readme instructions

www.xanga.com/goldwarlock
0
 
andrewmchorneyAuthor Commented:
What should I do for netscape?
0
 
andrewmchorneyAuthor Commented:
Can you point to examples of applet and servlet in www.javasoft.com
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
jorjCommented:
All this for 200 points ?? Maybe with some bucks....
0
 
jaikishanCommented:
too much assistance...well it is perfectly possible...
u need to take care of session handling..in the servlet..since the session management code of servlet does not gaurantee that u will be returned the same session when there is applet to servlet communication hence u need to pass a unique ID to all the applets so that they can take part in game..rest is all easy code...do u really need the code..start some thing i can add to them later..

jai
0
 
andrewmchorneyAuthor Commented:
I was just looking for a minimal applet, servlet and htlml code with assistance in setting up. I am not looking for the whole program.
0
 
mmuruganandamCommented:
Hello andrewmchorney,

  It is easily possible.  For this all you have to do is, you should have a class which is shared by both the players.  I have already done this for another game.  What I will do in that is, the game object is common to both the players.  In the servlet, I have observer and observable classes which is used to intimate the other player when there is a move.  The server will intimate the other player when there is a change in the game object.  In the client side, there will be a thread which is listening for the servers response.  When it is your turn, all you have to do is, just submit to the server with the appropriate moves.


All the best


Cheers,
Muruganantham
0
 
andrewmchorneyAuthor Commented:
muruganantham.

I am looking for a small applet that just connects to the servlet, a servlet that would respond to the request and some html code that would start up the servlet (if not running) and  the applet.
0
 
MoondancerCommented:
ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101 or Netminder will return to finalize these if still open in seven days.  Please post closing recommendations before that time.

Question(s) below appears to have been abandoned. Your options are:
 
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you. You must tell the participants why you wish to do this, and allow for Expert response.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question. Again, please comment to advise the other participants why you wish to do this.

For special handling needs, please post a zero point question in the link below and include the question QID/link(s) that it regards.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Please click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site.  If you are an EE Pro user, use the Power Search option to find them.  Anytime you have questions which are LOCKED with a Proposed Answer but does not serve your needs, please reject it and add comments as to why.  In addition, when you do grade the question, if the grade is less than an A, please add a comment as to why.  This helps all involved, as well as future persons who may access this item in the future to seek help.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.11438258.html
http://www.experts-exchange.com/questions/Q.20136425.html
http://www.experts-exchange.com/questions/Q.20140929.html
http://www.experts-exchange.com/questions/Q.20230446.html
http://www.experts-exchange.com/questions/Q.20252892.html
http://www.experts-exchange.com/questions/Q.20252904.html


To view your locked questions, please click the following link(s) and evaluate the proposed answer.
http://www.experts-exchange.com/questions/Q.20127150.html
http://www.experts-exchange.com/questions/Q.20141198.html

PLEASE DO NOT AWARD THE POINTS TO ME.  
 
------------>  EXPERTS:  Please leave any comments regarding your closing recommendations if this item remains inactive another seven (7) days.  Also, if you are interested in the cleanup effort, please click this link http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643

Moderators will finalize this question if still open in 7 days, by either moving this to the PAQ (Previously Asked Questions) at zero points, deleting it or awarding expert(s) when recommendations are made, or an independent determination can be made.  Expert input is always appreciated to determine the fair outcome.
 
Thank you everyone.
 
Moondancer
Moderator @ Experts Exchange

P.S.  For any year 2000 questions, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.
0
 
NetminderCommented:
Force-accepted by
Netminder
CS Moderator
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now