putting captchas into dspace using jcaptcha
ingest-export.ppt
If the email form was not called then a jsp was called that produced the captcha: captcha_main.jsp The jsp captcha_main.jsp called in order the following java classes to make the captcha image:
ImageCaptchaServlet.java
CaptchaServiceSingleton.java
MyImageCaptchaEngine.java
Also the file dspace-web.xml had to be modified.
-Djava.awt.headless=true
into the catalina.sh file.
How do I perform browser redirection from a JSP pages
Breaking a Visual CAPTCHA
code needed for a captcha
The file form.jsp had to be modified so that if the captcha was not set or was not correct the form for the email form was not produced.If the email form was not called then a jsp was called that produced the captcha: captcha_main.jsp The jsp captcha_main.jsp called in order the following java classes to make the captcha image:
ImageCaptchaServlet.java
CaptchaServiceSingleton.java
MyImageCaptchaEngine.java
Also the file dspace-web.xml had to be modified.
X11 not on the box where tomcat runs
If X11 is not the box with tomcat, you will get an error like "port 6000 not available". To fix this put:-Djava.awt.headless=true
into the catalina.sh file.
Helpful links
How to use jsp-forward tagHow do I perform browser redirection from a JSP pages
Breaking a Visual CAPTCHA