My case: a user can download files. There is a list of files he can select. There is a spring mapping:
@ResourceMapping(DOWNLOAD)
public void downloadSelected(ResourceRequest request, ResourceResponse response, AuditView auditView, BindingResult bindingResult) {
}
auditView
has a list of files.
If user didn't select any I need to validate and display the same page with error displayed.
i can validate: validator.validate(auditView, bindingResult);
The question is how to forward to Render phase in case of errors?