strange behavious with struts 2 validators

The int validator only checks for the range. It doesn’t case if the input is a valid integer or not. Better use a ‘regex’ validator for checking if it is number. And then use ‘int’ validator to make sure the number is with in the range.

The regex validator on integer field doesn’t work for some reason (this is because it expects the field to be validated by the conversionError interceptor).

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: