Re: Using Jcaptcha with GWT
Just got this going - the best and most natural solution for GWT is
described at
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/51b1fac30a6e1217/de7f3e1af14c7cf4?lnk=gst&q=captcha#de7f3e1af14c7cf4
It creates a nice litlle reCaptcha widget which you can include in any
of your other GWT client pages. Then you just retrieve the challenge
and user response Strings and pass them down to your server code like
you would for any other client entered data.
The server code then can verify whether the user response is
acceptable or not using the standard reCaptcha Java API with code that
looks like:
ReCaptchaImpl reCaptcha = new ReCaptchaImpl();
reCaptcha.setPrivateKey("<your_private_key>");
ReCaptchaResponse reCaptchaResponse =
reCaptcha.checkAnswer(remoteAddr, challenge, response);
boolean valid = reCaptchaResponse.isValid();
On Jul 17, 10:01 am, camerojo <jadcpub-goo...@yahoo.com.au> wrote:
> I am interested in this as well - in fact any captcha - not just
> JCaptcha.
>
> Here are two postings that I found recently. I haven't tried either
> yet myself, so interested in any feedback.
>
> http://www.javacodegeeks.com/2010/06/add-captcha-gwt-application.html
>
> and
>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> On Jul 16, 6:17 pm, junaid <juna...@gmail.com> wrote:
>
> > Hi
> > Is there any tutorial / example of JCaptcha with GWT
> > thanks
> > junaid
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home