aspose file tools
The moose likes Struts and the fly likes Struts 2 JCaptchaforStruts 2 issue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Struts 2 JCaptchaforStruts 2 issue" Watch "Struts 2 JCaptchaforStruts 2 issue" New topic
Author

Struts 2 JCaptchaforStruts 2 issue

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

Guys,

I'm using the Struts2 J Captcha plugin as it is available from this website http://code.google.com/p/jcaptcha4struts2/wiki/QuickStart

Everything works fine bu I'm not just able to retain my form values whenever I enter a wrong value for the captcha. The form values are reset. I'm really clueless as to where the captcha validation happens and what results when the validation fails. Does anyone have an idea on this?

Here is my action mappting:



where register.jsp is the jsp page for the form input and a snippet of it would look like as below:



SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

Allright. Figured out the issue. It was because of the fact that the JCaptchaForStruts2 interceptor does not implement ModelDriven and Preparable interfaces. Found a decent workaround for this solution.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Struts 2 JCaptchaforStruts 2 issue
 
Similar Threads
How to retrive values from <s:select> tag which is populated with data from the database in struts2.
Validation error mesage is not display in browser
<s:fielderror/> is not display error mybrowser
how to hide and show contents with struts2 div tag
jQuery select option