public String getFormAttribute ( @ NotNull final String name , String defaultValue ) { String value = request . formAttributes ( ) . get ( name ) ; if ( value == null ) { return defaultValue ; } return value ; }
Allow getting form parameters in a generified way and return defaultValue if the key does not exist .