This might seem like a dumb question to you, but the action I am using already 
extends ActionSupport and implements ServletRequestAware.  How do I then 
implement the ReCaptchaAware?

-----Original Message-----
From: Lukasz Lenart [mailto:lukaszlen...@apache.org]
Sent: Monday, December 11, 2017 10:21 PM
To: Struts Users Mailing List <user@struts.apache.org>
Subject: Re: Question

2017-12-11 20:56 GMT+01:00 Deborah White <deborah.wh...@doj.ca.gov>:
> Hello, has anyone implemented the new reCaptcha v2 (I'm not a robot) with 
> Struts 2.3.34?  I have followed examples and it just spins when clicked.

Yesterday I have extended my Google AppEngine plugin [1] with a support for 
reCAPTCHA. It targets Struts 2.5.x but you can copy relevant classes [2] and 
adjust them to 2.3.x It uses a dedicated interceptor to perform reCAPTCHA 
validation once an action implements ReCaptchaAware interface.

You must request keys from here [3] and then use provided JS and HTML snippet. 
On server side you must define a constant with secret and done :)


[1] https://github.com/lukaszlenart/struts2-gea-plugin
[2] 
https://github.com/lukaszlenart/struts2-gea-plugin/tree/master/src/main/java/com/gruuf/struts2/gae/recaptcha
[3] https://www.google.com/recaptcha/admin#list


Regards
--
Łukasz
+ 48 606 323 122
+ https://protect2.fireeye.com/url?k=7c2283f13780f4df-d7b44f5b06a6d00e&u
+ =http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



CONFIDENTIALITY NOTICE: This communication with its contents may contain 
confidential and/or legally privileged information. It is solely for the use of 
the intended recipient(s). Unauthorized interception, review, use or disclosure 
is prohibited and may violate applicable laws including the Electronic 
Communications Privacy Act. If you are not the intended recipient, please 
contact the sender and destroy all copies of the communication.

Reply via email to