We show that all W-gravity actions can be easilly constructed and understood
from the point of view of the Hamiltonian formalism for the constrained
systems. This formalism also gives a method of constructing gauge invariant
actions for arbitrary conformally extended algebras.Comment: 9 page