Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Captcha

 
Rohitash sharma
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a programme based on 'captcha'.It is working but i want to add one essential feature. I want to add a link on the same page that if any one click on that link captcha image should change but not whole page should be refreshed

Please give me guidance
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Ajax. Not a particularly Struts-oriented question, though--if you're using Struts 2 you might be able to use the provided Ajax tags (although we're probably going to deprecate them as of S2.1.3).
 
Rohitash sharma
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But sir it is not possible that if we click on that link then it calls a servlet and we create another image produced by that servlet and
we include that image in page.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's why I said to use Ajax, so it doesn't refresh the entire page.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic