Remarks on variational methods and lower-upper solutions