how to forward users to “resetPassword” page if users attempt to login more then 3 times with invalid username & password(STRUTS2)
问题 I want to implement: If users tries to login with invalid username & password for more than 3 times. I would like to forward them to my "reset password page". What is the logic behind this. I'm unable to catch the exact logic for this problem. Please help. What I thought to apply: passing default value from my form textfield as Login_attempt=1 from my form , //geter & setter of loginAttempt if(loginAttempt>3) { return resetPassword;//forwarding to resetPassword.jsp from my struts.xml } else {