Hi,
I have been debugging my first struts app. It uses a LookupDispatch Action to perform CRUD methods. When the detail page is displayed, the user has the option to Edit or Delete the information. If I clear out one of the required fields, and hit Edit, it seems that validation is skipped because I get a db exception where a null value was attempted to be put in a required db column. After further investigation, I was messing around with the Add portion. I notice that if I enter some of the required data, hit enter, the validate() method is called, and, as expected, the errors for the remaining required fields are displayed. Next, I enter more (but still not all) of the required data, and hit enter. Now, I have a similar db exception as was described above on the Edit page.
I don't understand why it seems that the validate() method is not called before every submit. Does anyone have any ideas on this matter?
Just to clarify, I am not using the validator plugin, just the validate() method in the action form bean.
Toni