Good Day,
I'm working these days on an internet application. One of our most difficult issues is with user input validations/applying constraints and normalization of user input.
Usually we apply the validations on the client side (JavaScript) and normalization via Oracle SQL (i.e. trimming leading spaces).
One thing I'm not clear about is where the validations/constraints rules should be specified. I think that all of them should be in the DB and then be read and translated to JavaScript for validations. About normalization – actions that don't require user confirmation (case folding, capitalization, white space normalization) should they be implemented as triggers?
Any thoughts?
Thanks,
Dan
I'm working these days on an internet application. One of our most difficult issues is with user input validations/applying constraints and normalization of user input.
Usually we apply the validations on the client side (JavaScript) and normalization via Oracle SQL (i.e. trimming leading spaces).
One thing I'm not clear about is where the validations/constraints rules should be specified. I think that all of them should be in the DB and then be read and translated to JavaScript for validations. About normalization – actions that don't require user confirmation (case folding, capitalization, white space normalization) should they be implemented as triggers?
Any thoughts?
Thanks,
Dan