| J2JS | |
| Home > Demos > Credit Card Validator | |
Credit Card Validator Demo
Checks for valid credit card numbers using Luhn algorithm.
This is an example of how identical code can be used to
improve server side security and user experience on the
client.
The algorithm is implemented in CreditCardValidator.java. It validates a list of hard-coded credit card numbers, or any number passed as command line arguments. For example, try CreditCardValidator.html?myNumber=4417-1234-5678-9113
Here and with the Java 5 Features Demo you see that the values of URL query parameters are passed to the
declared | |
| Last build on Sat Jan 03 11:06:48 CET 2009 | |