File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes how to refresh captcha image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "how to refresh captcha image" Watch "how to refresh captcha image" New topic

how to refresh captcha image

sa sam
Ranch Hand

Joined: Mar 01, 2009
Posts: 46
i am using simplecaptcha.jar lib in my application ,

my problem is i want to refresh image without refreshing the page, and also after every submit action i want to change my captcha image value.

so if any one know the solution or any other way then please help me.

thanks in advance.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

The image is part of the page, so by definition, refreshing the image means refreshing the page.

You can do partial page refresh using AJAX to update only the image (and I have done that), but it's still a page update.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: how to refresh captcha image
It's not a secret anymore!