My fault. Let me retry explaining the problem. By the way this question is for the discussion and not for the exam. The exam doesn't ask us to go in such depth.
Process A requires heavy operation on the server side. The user sends request1 which invokes process A. Let's call this particular instance of the process as A1.
While the process A1 is going on the user gets impatienct and hits the refresh button. What happens now. The request2 is sent which invokes process A again. Let's call this instance of the process A2.
1)Will the process intance A1 complete its full course or not? I mean will the process instance be interrupted since a new request has come.
2) Since the request2 is already received by the server will the server send the response to request1 to the browser only to find out that the browse will drop the respone since the browser is expecting response from request2.
3) Or the serve will complete the process A1 but will not send an HTTP response since a new request request2 has already been received.
Please keep in mind that I am not looking for a fix. We all know that
struts offers token [save(token)] which can help mitigate the problem. I just want to know what happens to the abandoned process.
thanks.
- Roger
2)