Compactness and existence results for the p-Laplace equation