BTW, I recently finished Jeff Shaara's novel about the MExican War, Gone For Soldiers. Really interesting book.
The Mexican Army was mostly used to terrorizing peasants and Indians. They fought against a modern army about as well as the Taliban did.