I'm using Jcaptcha with my tapestry application.

1. Load the ImageCaptchaServlet in your web.xml.
<servlet>

<servlet-name>jcaptcha</servlet-name>

<servlet-class>com.foo.ImageCaptchaServlet</servlet-class>

<load-on-startup>1</load-on-startup>

</servlet>


<servlet-mapping>

<servlet-name>jcaptcha</servlet-name>

<url-pattern>/jcaptcha</url-pattern>

</servlet-mapping>


2. Do something like this in a component class method to get the captcha question.
captchaId = getPage().getRequest().getSession(true).getId();
return CaptchaServiceSingleton.getInstance().getQuestionForID(captchaId);

3. Point to the servlet for the captchaimage in your component .

4.  To validate the user response
captchaId = getRequest().getSession(true).getId();

return CaptchaServiceSingleton.getInstance().validateResponseForID(captchaId, userResponse);


Hope this helps.


----- Original Message ----- From: "Oscar Picasso" <[EMAIL PROTECTED]>
To: "Tapestry users" <tapestry-user@jakarta.apache.org>
Sent: Sunday, April 16, 2006 11:47 AM
Subject: Re: Looking for a CATCHPA


I have taken a look. But I have no idea where to start. The api javadoc has only one class: JCaptchaCommentAuthenticator. It seems there is a problem with the site.

Have you worked with JCaptcha? And do you know where to start?

Oscar



J�r�me BERNARD <[EMAIL PROTECTED]> wrote: Have a loot at http://jcaptcha.sourceforge.net/

Regards,
J�r�me.

On 4/16/06, Oscar Picasso  wrote:
Hi,

I'm looking for a CATCHPA library to use with my Tapestry application. I'm looking for something easy to use and efficient.

I welcome any advice.

Oscar


---------------------------------
Blab-away for as little as 1�/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.



--
J�r�me BERNARD,
Kalixia, SARL.
http://weblog.kalixia.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to