Home
Name Modified Size InfoDownloads / Week
bin 2010-04-01
src 2010-04-01
README.txt 2010-04-01 1.7 kB
Totals: 3 Items   1.7 kB 0
This Java based API lets you introduce capcha to you J2EE 1.3 + compliant Web Applications and supportive to frameworks like Struts, JSF so that you do not have to worry about having to write your own code for capcha. Without capcha your code becomes vulnerable to attack to populate a database on the server without at all opening the browser, by executing simple Java/other Application to a machine connected to the network. It not only populates the database with junk entries but also consumes a huge amount of network resource like bandwidth and may even lead to as worst as Denial of Services so that the original user cannot access the application via browser.
========================================
To use the API, you've to get the Capcha.jar file in
classpath and also that in the WEB-INF/lib folder of
your web application. If you want the capcha to be visible on a page say, A.html, where you have form entires to input data, also leave a text field for the 
input of capcha, you've to place the edu.soham.capcha.web.ServletCapcha in the web.xml by proper mapping which you may do mannually but IDEs like Eclipse, NetBeans, Rational Application Developer etc. make your job easier and faster. Suppose you have "/CS" as the entry in <url-pattern> tag. Use an <iframe> tag with src="CS" and proper width and height attributes values. The capcha that is generated by this servlet will be rendered as Image and random in Font and Color . It's also stored in the session scope of the application, so that you can access it
by
 String strCapcha=(String)session.getAttribute(UtilCapcha.STR_ATTR_SESSION);

Now you are free to enjoy developing web application with minimal threats of Denial of Service and Junk entry in the database
Source: README.txt, updated 2010-04-01