项目描述
Task: Preserving state in Web-applications
Implement a servlet or JSP page with the following behavior:
1. If the user is logged in for the first time, they are offered a question, 3 answers and a “Vote” button.
2. The user selects one option and clicks “Vote”, after which the voice is stored in memory on the server and the fact of voting is remembered in the user’s session.
3. The user who has already voted sees the overall results of the vote and cannot vote again within the same HTTP session.
I have an implementation in Intellij IDEA, but I can’t run it.
We need to make it work.
I'll see you tonight.
Implement a servlet or JSP page with the following behavior:
1. If the user is logged in for the first time, they are offered a question, 3 answers and a “Vote” button.
2. The user selects one option and clicks “Vote”, after which the voice is stored in memory on the server and the fact of voting is remembered in the user’s session.
3. The user who has already voted sees the overall results of the vote and cannot vote again within the same HTTP session.
I have an implementation in Intellij IDEA, but I can’t run it.
We need to make it work.
I'll see you tonight.
网页开发 现金