Open
Conversation
…ll, at which a request will be sent to the server. Added to each cell the address of the servlet that is responsible for the logic. In the package “com.tictactoe“, we will create a class ”LogicServlet" and add a method to it that will get the index of the cell on which the click occurred. Created the ”InitServlet“ class, redefined the ”doGet" method in it, in which he created a new session, a playing field, put this playing field and a Sign list in the session attributes, and sent “forward" to the index.jsp page.
…getting the current session and the object of the playing field.
…hree tic-tac-toe in a row.
…st time after installing the cross, the second time after installing the zero.
… the “winner” parameter, output the winner.
… a POST request to the server. I made the function synchronous, and when the response comes from the server, it will reload the current page.
…pdated the “data” field and sent a redirect to "index.jsp".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.