spring-framework / org.springframework.validation / BindingResultUtils / getBindingResult

getBindingResult

@Nullable open static fun getBindingResult(model: MutableMap<*, *>, name: String): BindingResult

Find the BindingResult for the given name in the given model.

Parameters

model - the model to search

name - the name of the target object to find a BindingResult for

Exceptions

IllegalStateException - if the attribute found is not of type BindingResult

Return
the BindingResult, or null if none found