I've visited using recaptcha (captcha) with sun one asp a number of times and never got it to work but finally I worked it out and here is how.
You can use the standard classic asp code on googles web site.
http://code.google.com/apis/recaptcha/docs/asp.html
All you then need to change is one line of code
Replace
Set objXmlHttp = Server.CreateObject("MSXML.XMLHTTPRequest")
with
Set objXmlHttp = NewJavaObject("com.sun.msxml.XMLHttpRequest")
You then need to update the bean policy file and add two new lines.
/opt/casp/asp-server-3000/bean.policy
permission java.util.PropertyPermission "*", "read,write";
permission java.net.SocketPermission "*", "connect,resolve";
You then need to configure sun one asp to enable java beans and enable the java security manager via the management interface. It will prompt you to restart the asp server which needs to be done to pick up the changes.
Once thats all done your captcha code should work on sun one asp 4.0.3.
Tuesday, 6 September 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment