Hi.
I suggest you browse the sources for /samples/petclinic in the Spring distribution folder, it's pretty instructive. You can copy, rename etc the petclinic controllers and adapt to the needs you have.
Quote Spring API docs from AbstractCommandController
Abstract base class for custom command controllers. Autopopulates a command bean from the request. For command validation, a validator (property inherited from BaseCommandController) can be used.
This command controller should preferrable not be used to handle form submission, because functionality for forms is more offered in more detail by the AbstractFormController and its corresponding implementations.
Seems like your needs involves a form to me. Use SimpleFormController.
Sincerely,
/The Cantor
"Murphy was an optimist"
(The O'Toole commentary on Murphy's Law)