Do you have a code example of such an ImageCaptchaServlet?

Daniel Lydiard <[EMAIL PROTECTED]> wrote: I'm using Jcaptcha with my tapestry 
application.

1. Load the ImageCaptchaServlet in your web.xml.


jcaptcha

com.foo.ImageCaptchaServlet

1






jcaptcha

/jcaptcha




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" 
To: "Tapestry users" 
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  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]



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to