This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Are these attributs mapped to the command? If so, redirect to an error page will be done automatically. If the attributes are not mapped to the command, one solution is to create an intercetor to do the validation and redirect to what ever error page you want.
Hope this helps.

Comment

Is the GET request considered a form submission? If so, override isFormSubmission() and then validation will occur.

If you want to validate on GET, but not treat it as a form submission, then there are two ways to do this.

To simply check for missing parameters, the binding framework can do this with ease. You can configure the binder, inside initBinder(), to check for mandatory fields. Simply call binder.setRequiredFields(), passing in the names of the fields that must exist.

You could also override onBindOnNewForm(), and do whatever custom processing there.