We improve strong lensing constraints on cosmological parameters in light of the new measurement of the velocity dispersion function of early-type galaxies based on the SDSS DR5 data and recent semianalytical modeling of galaxy formation. Using both the number statistics of the CLASS statistical sample and the image separation distribution of the CLASS and the PANELS radio-selected lenses, we find the cosmological matter density to be Omega(m,0) = 0.25(-0.08)(+0.12) (68% CL) assuming evolutions of galaxies predicted by a semianalytical model of galaxy formation and Omega(m,0) = 0.25(-0.08)(+0.12) assuming no evolution of galaxies for a flat cosmology with an Einstein cosmo logical constant. For a flat cosmology with a generalized dark energy, we find the nonevolving dark energy equation of state w(x) < -1.2 (w(x) < -0.5) at the 68% CL (95% CL).