This document is a tutorial that demonstrates how to integrate JCaptcha with a Roller.
It Uses the Roller Weblogger VERSION 0.9.9.5.
This tutorial is devided into 3 Steps.
It is assume that you have a 0.9.9.5 roller web application instance running. See Roller installation guide to achieve this.
Install the jcaptcha Roller plugin
<plug-in className="com.octo.captcha.module.struts.CaptchaServicePlugin"/> |
<action path="/jcaptcha" type="com.octo.captcha.module.struts.image.RenderImageCaptchaAction" /> |
Roller provides a Comment Athenticator interface to plug anti spam comment implementation.
The only thing to change in order to activate the jcaptcha plugin is the folowing line in the web.xml file :
<!-- UnComment authenticator to be used. --> <context-param> <param-name>org.roller.commentAuthenticatorClass</param-name> <param-value>com.octo.captcha.module.roller.JCaptchaCommentAuthenticator</param-value> <!-- <param-value>org.roller.presentation.velocity.DefaultCommentAuthenticator</param-value> <param-value>org.roller.presentation.velocity.MathCommentAuthenticator</param-value> --> </context-param> |