integration of recaptcha in java web application
Step 1. Register your account and get key
First, go to the reCAPTCHA web site and create an account. As part of that account creation process you'll have to specify the domain your reCAPTCHA will be protecting.
The reCAPTCHA site will will give you a key pair for that domain. The key pair allows you to authenticate your reCAPTCHA requests to the reCAPTCHA servers, as we'll see.
Step 2. Put reCAPTCHA JavaScript code in your application
Following JavaScript code you need to put in your JSP / HTML page, This JavaScript will generate the reCAPTCHA box when users request the page:
You need to put with the public key that you received during the account creation process.
Be careful that you don't use your private key by mistake . If you do that then everybody will be able to see your private key and act like they're you.
Step 3. add a following code in servlet
public void doPost(HttpServletRequest req, HttpServletRespo...