On the relationship between the field equation and the Hamiltonian approach