That's interesting. In my undergraduate degree (which I believe to be fairly standard for the US), Lagrangian and Hamiltonian dynamics were both part of a one-semester classical mechanics course, along with much else. I'm quite envious, though---both Lagrangian and Hamiltonian dynamics are beautiful, and I need a better background.
If you don't mind my asking, where did you do undergrad?