Second, you have to check whether you have registered validation interceptor for that particular action or not.
What do you mean "for that particular action" ? I did turn on validation by declaring interceptors in struts.xml (also tried with default stack by the way) if that's what you meant.
I followed the official
doc and the basic validation IS working (requiredstring and regex among other) I just have two issues i've described in my first post. Maybe I expressed myself wrong I'll just tell what I want instead :
- For my nombrestockproduit and seuilstockproduit fields, I want to prevent null inputs. For empty value I just get nothing right now. But I think by default it fills the field with "0" for some reason, which may cause the validation to work.
-Second, for the same field I want to make sure the inputs are int between specific values. Right now if I input a random
string I get "Invalid field value for field xxx" in addition of my validator error message. But if I input a int outside of the specified range I only get my validator error message.