We consider the problem of minimizing multiple integrals of product type, i
.e.
(P) min
[GRAPHICS]
where Omega is a bounded, open set in R-N, f: R-N --> [0, infinity) is a po
ssibly nonconvex, lower semicontinuous function with p-growth at infinity f
or some 1 < p < infinity and the boundary datum u(0) is in W-1,W-p(Omega) b
oolean AND L-infinity(Omega) (or simply in W-1,W-p(Omega) if N < p < infini
ty). Assuming that the convex envelope f** of f is affine on each connected
component of the set {f** < f}, we prove attainment for (P) for every cont
inuous, positively bounded below function g such that (i) every point t <is
an element of> R is squeezed between two intervals where g is monotone and
(ii) g has no strict local minima. This shows in particular that the class
of coefficents g that yield existence to (P) is dense in the space of cont
inuous, positive functions on R. We present examples which show that these
conditions for attainment are essentially sharp.