  We classify positive solutions to a class of quasilinear equations with
Neumann or Robin boundary conditions in convex domains. Our main tool is an
integral formula involving the trace of some relevant quantities for the
problem. Under a suitable condition on the nonlinearity, a relevant consequence
of our results is that we can extend to weak solutions a celebrated result
obtained for stable solutions by Casten and Holland and by Matano.
