Yariel Ramos Moreno wrote:
How can I validate a form field to accept numbers from 1 to 99 or an underscore (_) using the validator framework. The application is in Struts 1.1.
If you didn't have the requirement to accept underscore, intRange would be what you were looking for. With that requirement, you'd have to use a regex, or write a custom validation rule. See the 'mask' validation rule [1] for the regex approach.
L. [1] http://struts.apache.org/1.2.9/userGuide/dev_validator.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]