On a class of nonlinear boundary value problems