posted 15 years ago
My friends,
Need some help for multiactioncontroller of spring mvc.
I understand that MultiActionController supports multiple action methods which can be mapped using methodNameResolver. With different coming URL, it calls different method of the controller.
My question is regarding the validation. Are all methods of the controller sharing a single validator?
Is there a way to support different validators for different method name?
e.g., In a standard CRUD operation of an business object, edit/create requires firstname and lastname not empty, while delete requires only userid not empty. How do I implement in this way?
Thanks.