hi folks,
It seems like if I specify a field as required in
struts's validation-rule.xml and that field is missing
from the form, when i submit the form it would say
file not found /actionName without spitting out an
exception. It is as if it's seeing the action
specified by actionName as a file... any idea why?
thanks
Here is my validation-rule.xml:
Here is my action-mapping:
Here is my form embedded in the
jsp if I add in the missing required field headWeight,
then
the action gets called and everything's fine.
otherwise, it would not even construct the action, it
happened before action gets constructed and called..
If a field is missing, shouldn't it just populate the
bean and forwards back to the input page with the
error msg instead of giving a mysterious error?
what's wrong with the way i m using struts validation?