Patent ID: 8156420

Claim:
A method comprising: determining a locale that includes a client that accessed a webpage using an Internet Protocol address associated with the client; reading a validation rule for the locale that includes the client that accessed the webpage; generating validation script to check whether data entered into the webpage is valid for the locale, the validation script being configured to be embedded in a form used to present the webpage; and generating an error handling script configured to: check a result table for an error record associated, at least in part, with the validation script; determine the error record corresponds to an error in an event table, the event table comprising multiple entries, each entry configured to associate an event to multiple error conditions and an error message, at least one error condition associated with a current validation state associated with the form and at least one error condition associated with a last validation state associated with the form; and responsive to determining the error record corresponds to an error in the event table, present, based at least in part on the multiple error conditions, an associated error message.