I've searched on this forum and on Google and I just can't figure out why my validation messages are not showing up when I set it up for automatic validation (i.e. using the ValidatorPlugin and the XML's). If I do manual validation, everything works but I want to use automatic instead. What I want to do is check schedule name is not empty. When I submit my form, it brings me back to the page, leading me to believe that the validation is working, but no error message is displayed.
Here's what I have:
CreateScheduleForm:
struts-config.xml:
validation.xml
my createSchedule.jsp has:
I have a MessageResources.properties file defined in the WEB-INF/classes directory with
errors.required={0} is required.
schedule.name=Schedule name
Note I am using ValidatorActionForm here so that I can map validation to a specific action instead of a form-bean. I have also tried doing it the other way, extending ValidatorForm instead and using the form-bean-name in the validation.xml.
I get no exceptions from Tomcat or logs.
Please let me know if more information is required. Much appreciation and thanks in advanced, I always get amazing help from you guys