previous | index | next

Custom Validator Example Application

The credit card payment example with a custom validator.

The input page: index.jsp.

The custom validator class: CreditCardValidator.java.

The luhnCheck method implements part of the Luhn formula, developed to verify and generate credit card numbers:


previous | index | next