I am using SimpleCaptcha in my application. The captcha image changes for every new request.
Now i am trying to validate captcha using AJAX and when the validation is successful i will go ahead and submit the form or else i will need to reload the CAPTCHA.
The validation works fine but since the request doesnt change the CAPTCHA also remains the same.
When manual page reloads happens its rendering a CAPTCHA byt AJAX refresh doesnt render a new one.
Is there a way to create a new request in JAVA or AJAX everytime i validate or is there any other solution??