I'm new in this community so hello!
Me and a friend is working on a multiplayer browser game.
I'm in charge of coding the game in Java while my friend is in charge of coding the homepage and forums with php.
Lets say the java applet has a login screen in which the user types in his/her user info and will log in if the authorization is successful.
A lot of sources recommended me to use servlets to do this. I spent a lot of time studying servlets and came up with this:
User types user & pass in java applet and presses enter
Username and encrypted pass goes to servlet while applet listens for response
Servlet compares username and pass with data in database
If matches, servlet retrieves user info (level, xp, skills) from database and sends it back to the applet
applet receives info and do whatever
Unfortunately, since my friend is using php and I require java, there appears to be a conflict. Only way to run java servlets is if I have java/tomcat hosting. I tested this with appfog and cloudbees however it seems that php cant run in tomcat.
So this makes it seem like I have to choose between my friend using jsp(not an option) or I'll have to find an alternative method.
Does anyone have any other methods they would recommend or a solution to the above problem?