he fought in the battles of palo alto and resaca de guerrero