struts2 - captcha plugin for struts 2 -


any captcha plugin struts 2 other jcaptcha4struts2 , provide useful link also

try this: http://code.google.com/intl/de-de/apis/recaptcha/docs/java.html

it pretty straightforward struts 2.

i recommend copy on source code (its asl licensed , therefore allowed) , follow instructions. or create taglib, if avoid java code in jsp.

the server side instructions can modified use field names recaptcha_challenge_field , recaptcha_response_field.

if add following methods action:

public httpservletrequest gethttpservletrequest() {     return httpservletrequest; }  public void sethttpservletrequest(httpservletrequest httpservletrequest) {     this.httpservletrequest = httpservletrequest; } 

and add following listener web.xml:

 <listener>     <listener-class>org.springframework.web.context.request.requestcontextlistener</listener-class> </listener> 

you able catch httpservletrequest necessary validate captcha.

hope helps. cheers, christian


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -