Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties for FactoryRandomImpl #6

Open
GoogleCodeExporter opened this issue Apr 29, 2015 · 1 comment
Open

Properties for FactoryRandomImpl #6

GoogleCodeExporter opened this issue Apr 29, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. in the sample code replace the FactorySimpleMathImpl with 
FactoryRandomImpl in the captcha.jsp and index.jsp
2. run the project on server and look into the console for the value
returned by the solver
3. Please note that i have not changed the instProps values in captcha.jsp
as i was not aware about the property names for FactoryRandomImpl.

What is the expected output? What do you see instead?
Must show VERIFIED instead showing Not Verified even if we give the right
values.

What version of the product are you using? On what operating system?
Project given as example in Windows.

Please provide any additional information below.
I am using JRE 1.5.0,TOMCAT 5.5

Original issue reported on code.google.com by s.chant...@gmail.com on 12 Jun 2008 at 11:12

@GoogleCodeExporter
Copy link
Author

Sorry that I didnot see to the source file FactoryRandomImpl.java
There arent any properties for FactoryRandomImpl, hence need not pass 
properties to
the   FactoryRandomImpl instance 
Also the captcha.jsp must have the below line modified when we use 
FactoryRandomImpl

          System.out.println("solver solved ="+(solver.getLastWord())); 
    session.setAttribute("icaptcha" , (solver.getLastWord()));

Donot forget to use the same FactoryRandomImpl in the index.jsp

Original comment by s.chant...@gmail.com on 12 Jun 2008 at 11:50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant