Documentation
TomahawkTools

Search 

Contents

  1. Introduction
  2. Getting Started
  3. Tomahawk Concepts
  4. Code View Support
  5. Design View Support
  6. Tag Object Toolbars
  7. Server Behaviors
  8. Property Inspectors
Selected 9. Tomahawk Tag Reference

10. Tomahawk Tag Reference

Contents > Tomahawk Tag Reference > t:validateCreditCard

t:validateCreditCard

The t:validateCreditCard tag allows you to validate various credit cards, including Amex, Visa, Mastercard, and Discover, using the Jakarta Commons validation library.

Example:

<t:validateCreditCard></t:validateCreditCard>

Tag Attributes

amex String
 
The amex attribute expects a boolean value that, when true, indicates that this validator can be applied to American Express credit cards. The default value is true.
discover String
 
The discover attribute expects a boolean value that, when true, indicates that this validator can be applied to Discover credit cards. The default value is true.
mastercard String
 
The mastercard attribute expects a boolean value that, when true, indicates that this validator can be applied to Mastercard credit cards. The default value is true.
message String
 
The message attribute defines an alternate validation message for this tag.
none String
 
The none attribute expects a boolean value that, when true, indicates that no credit cards are supported by this validator. The default value is false.
visa String
 
The visa attribute expects a boolean value that, when true, indicates that this validator can be applied to Visa credit cards. The default value is true.