My idea is that player 1 creates a game (for two players), server returns him a URL, player 1 sends this URL to player 2 and the player 2 opens URL and that connects him to the game.
What is the best and the easiest way to achieve this using JSP and related technologies?