When I'm on the JSP2, the url is that of the ActionClass1, so when I hit the reload button, the ActionClass1 is reloaded. (and I would like the ActionClass2 to be reloaded).How can I do ?
A good strategy to tell if a request has already been submitted is to use "tokens". Struts supports this directly with various *token methods in the Action class. To implement this, you would go back to "ActionClass0" that lead to JSP1. In this Action, put
saveToken(request) ;Then in ActionClass1 put a call to
isTokenValid(request)If the token is not valid, you would want to forward to ActionClass2
If it is valid, you would want to finish the usual processing in ActionClass1 and call
resetToken(request);to signal that the token has been used.